Open
Description
Create a PATCH API call that will verify whether the specified user has scanned the QR or not by sending the device_id in the body and updating the authorization_status in the document.
Request
PATCH
Endpoint
/auth/qr-code-auth/authorization_status/{authorization_status}
Params
Authorization_status (required, string): Specifies the authorization status of the user. The possible values are "NOT_INIT" , "AUTHORIZED", and "REJECTED". The default value will be "NOT_INIT"
Cookie
rds-session: JWT
Request Body
{
"authorization_status": "AUTHORIZED"
}
Request Response
{
"message": "String",
"data": {
"user_id": "String",
"device_info": "String",
"authorization_status": "String",
}
}
In case of any doubt let's have a discussion on a call or you can text Mobile-App-React-Native channel on discord.
You can also check our API contract in case of error responses.