jazzband / django-rest-knox

Authentication Module for django rest auth
MIT License
1.17k stars 213 forks source link

how give refresh token? #223

Closed eghbalpoorMH closed 4 months ago

eghbalpoorMH commented 4 years ago

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

joelawm commented 4 years ago

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.