RealDevSquad / RealDevSquad/website-backend
Feature Request : PATCH request that updates the authorization_status field of an existing qr-code-auth document for the specified user.
@fakhruddinkw is already working on this.
Since Jun 19, 2023.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.