R
R
Ramil Akperov2022-01-19 08:04:24
Django
Ramil Akperov, 2022-01-19 08:04:24

Authentication with Django Simple JWT or custom user authentication?

I have a question about user authentication in Django Rest Framework

  • Use Simple JWT or manually write authentication?
  • Which of these is better?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Nesterov, 2022-01-19
@Ramil03

Judging by what you're asking, you don't need custom authentication.
besides:
1. JWT is now the de facto standard on the market (at least one of them).
2. Why don't you test in "real conditions" and if it turns out that for some reason there are not enough features (assuming that the current features were used to the maximum, both on the back and on the front), write something then his.
3. On the issue of writing your own method - in 95% of cases, you can override individual components (for example, expand the payload of an access token).

D
Dr. Bacon, 2022-01-19
@bacon

And how do we know your criteria? First, they generally use the built-in one, if for some reason it does not suit you, then they choose another one. If JWT suits you in this choice, use it, if not, write your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question