Token based permissions
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
I’m using an API(django rest api) to handle my data and authentication/authorization
The way that it’s currently working is that whenever a user authenticates the api creates 2 tokens for access and update. Some routs in the api are only accessible if the user is authorized
So how can i send user’s token back to the api from nexjs to check if user is authorized to access a certain page? What is the best practice and common way of doing this?
Thank you
The way that it’s currently working is that whenever a user authenticates the api creates 2 tokens for access and update. Some routs in the api are only accessible if the user is authorized
So how can i send user’s token back to the api from nexjs to check if user is authorized to access a certain page? What is the best practice and common way of doing this?
Thank you