Upgrade JWT scope with valid MFA session
POST
/
sdk
/
{environmentId}
/
users
/
mfa
/
auth
/
totp
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
environmentId
string
requiredID of the environment
Body
application/json
id
string
createMfaToken
object
code
string
requiredThe TOTP code generated by the user
Response
200 - application/json
mfaToken
string
jwt
string
Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
user
object
requiredminifiedJwt
string
Encoded JWT token. This will only be returned when cookie-based authentication is disabled in favor of standard Auth header based authentication.
expiresAt
number
requiredFormat is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the jwt
field or a response httpOnly cookie set by the server.
Was this page helpful?