How to Authorize a User
how to obtain the details of a user and authorize them
Last updated
how to obtain the details of a user and authorize them
Last updated
When you use a login flow, the last step which marks the end of a flow is "Authorize User" what this means is that we will send the user to a page which you have marked as your redirect URI.
AuvoID would redirect the user to the Redirect URI
which you have specified in your flow.
After this send a POST request to /api/users/token
with your API key specified in the X-API-KEY
header, with the token specified in body like this.
This would exchange your token
with an accessToken
and it would be returned in the response body
You can now use this token to get information about the user by sending a POST request to /api/applications/authenticated-user
and get the user information back
This would send you back a response which looks like this