Sign in with a code

Request

This endpoint expects an object.
codestringRequired

A 45-character verification code. For magic links, this is the code found in the “code” URL query parameter. For OTP, this is formed by concatenating the 6-digit code entered by the user with the nonce (received during code creation)

Response

Successful response
refresh_tokenstring

Long-lived refresh token that can be used to obtain a new access token

access_tokenstring

Short-lived access token that can be used to authenticate the user

is_new_userboolean
Whether the user is a new user
user_idstring
The unique identifier of the user