django_react_template icon indicating copy to clipboard operation
django_react_template copied to clipboard

Authentication with JWT?

Open chessramone opened this issue 5 years ago • 4 comments

I see you have drfpasswordless in the settings.py Is JWT something you'd be interested in adding to this project?

chessramone avatar Apr 30 '20 00:04 chessramone

We have already implemented django rest framework tokens we will have to check how compatible that is with drfpasswordless, tho feel free to add it if you wish like I said, contributions are welcome.

vadimstasiev avatar Apr 30 '20 00:04 vadimstasiev

I've just looked up the drfpasswordless docs and according to them, it supports jwt tokens, which implies that you only have to change in settings.py some lines to get it working other than installing the package itself.

If you want me to be more specific on that let me know.

Terkea avatar Apr 30 '20 01:04 Terkea

How about you switch to dj-rest-auth instead of rest-auth which is not maintained anymore? Jazzband took over rest-auth and he is maintaining it, just changed the name to dj-rest-auth. They give clear examples of using JWT: https://dj-rest-auth.readthedocs.io/en/latest/configuration.html You just do: #155 I feel like this would be a good move ;-) P.S. Check: #568

io-ma avatar Nov 13 '20 09:11 io-ma

I've just looked up the drfpasswordless docs and according to them, it supports jwt tokens, which implies that you only have to change in settings.py some lines to get it working other than installing the package itself.

If you want me to be more specific on that let me know.

Hello, can you please add an example.

iNgredie avatar Mar 12 '21 17:03 iNgredie