DEV Community

Aanandhi V B
Aanandhi V B

Posted on

2 1

Should I use sliding tokens or {access+refresh} tokens for JWT Authentication?

Hi,

I am using JWT for authentication in my mobile application and I am using the django JWT package called djangorestframework-simplejwt. In that I learnt (from the documentation: https://github.com/davesque/django-rest-framework-simplejwt) about sliding tokens and {access+refresh} tokens. So using which one of these would be the best practise?

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay