Search code examples
reactjsdjangodjango-rest-frameworkjwtdjango-rest-framework-simplejwt

How to create temporary links with simple JWT in Django Rest Framework and React


I'm new to JWT tokens and I want to know if there is a way to create temporary links with simple JWT tokens, I already use JWT tokens for authentication in my app, if there is not a way to do this what is the best way to do it?

Thanks.


Solution

  • Yes you can create and verify tokens with Token class.

    This class has for_user class method to create token for specific users and verify method to verify the links.

    link to for_user

    link to verify method