• Default bearer AuthenticationFunction. This function will check the token present in the request's Authorization header.

    1. Token is fetched and decoded from the Authorization header
    2. If not an access token, throw error
    3. If an app access token, return token payload
    4. If a user access token, perform security checks, throw error if fails. Otherwise return token payload
    • If token is mismatched fingerprint with the request, throw error
    • If token is mismatched IP and user agent with the request, throw error
    1. Otherwise, throw error

    Parameters

    Returns Promise<AccessTokenInfo>

    Token payload

Generated using TypeDoc