#Django Rest Framework with jwt token

1 messages · Page 1 of 1 (latest)

tight ledge
#

Hello, I have a question. I created an Rest Framework API that includes authtoken, and I use it for private use to access some data and update it . So do you think I need to add a jwt token so i can have access_token and refresh_token ? what do u think is better to do

#

is i only have one token

or

i have access_token and refresh_token for better safety?

#

ah and ill use the api in discord bot .

versed quartz
#

Since I haven't used the drf builtin authtoken, I read the docs and searched for information.
And I think below link can be helpful for your decision.
https://stackoverflow.com/questions/31600497/django-drf-token-based-authentication-vs-json-web-token?source=post_page-----e54c3ed2420c--------------------------------

viral elk
#

And no need to implement it yourself

#

This is great