Complete Login

post/auth/login-complete

Complete a login sequence to obtain access and refresh tokens, and cardholder account id. The login sequence is initialized by Initiate Login or Sign Up. For more details, see Authentication.

With multi-factor authentication (MFA), a response can return a nextStep instead of credentials. Act on the next step and call Complete Login again with the same loginRequestId, until the response returns credentials. MFA adds two calls after the one carrying the signature: one to select the MFA method, and one to submit the MFA code.

Request

Query Parameters

  • mfabooleandefault: false

    Opt in to multi-factor authentication. Only read on the call carrying the signature. When the account has a verified phone or email, the response returns a nextStep instead of credentials.

Body application/json

One of

  • loginRequestIdstringrequired

    The unique identifier of the login request.

  • signaturestringrequired

    The signature of the challenge.

Response

Successful operation.

Body application/json

One of

  • accessTokenstring

    The access token that will be used for subsequent authenticated requests.

  • refreshTokenstring

    JWT that is used to request a new access token. Refresh tokens are valid for 30 days.

  • cardholderAccountIdstring

    The unique identifier of the cardholder.