django-rest-knox icon indicating copy to clipboard operation
django-rest-knox copied to clipboard

how give refresh token?

Open eghbalpoorMH opened this issue 5 years ago • 1 comments

how can give refresh token for use when the access token expired?

eghbalpoorMH avatar Sep 23 '20 12:09 eghbalpoorMH

If done correctly the browser/client should send the token back to the django server and ask for the information that you want along with the token (or maybe just to vertify its good) if it's not then you should just call the user to relogin, I believe it should send an authentication error to your browser/client. Thats the basic structure your going to want to achieve, which is called a user load function.

joelawm avatar Sep 23 '20 13:09 joelawm