Blink

Blink

    blinkSDK.onAuthenticationChange()

    Register an application-side callback to get notified for changes in Blink authentication status.

    Usage

        blinkSDK.onAuthenticationChange(
            (response) => {
                if (response.authenticated) {
                    // App-side logic when Blink user is authenticated    
                } else {
                    // App-side logic when Blink user is not authenticated
                }      
            },  
            true
        );
    

    Signature

        blinkSDK.onAuthenticationChange(callback, [runAtStart])
    

    Parameters

    parametertyperequireddescription
    callbackfunction☑Called whenever the authentication status changes, will receive a response object
    runAtStartfunction☐Executes the callback once right after registering, dafaults to false

    Returns

    void

    Objects definitions

    Response object

    {
      "authenticated" : // authentication status
    }
    
    nametypedescription
    authenticatedbooleanAuthentication status
    • Usage
    • Signature
    • Parameters
    • Returns
    • Objects definitions
      • Response object
    Blink
    Docs
    Getting StartedPublic API
    Integration
    Donation
    Blink
    Copyright © 2021 Blink Ledger Systems Inc. All rights reserved