X
X
Ximiz2020-07-07 18:51:16
JSON Web Token
Ximiz, 2020-07-07 18:51:16

How to register in drf without jwt?

Hello everybody! I am using jwt in my project. I made a view that creates a user. The problem is that when I send a request via postman with the wrong token, I get an error. I need to make sure that this token is ignored. How can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Larisa .•º, 2020-07-08
@barolina

remove from viewset
permission_classes = [IsAuthenticated]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question