I am using Django(REST FrameWork, SimpleJWT) and React for my project. For autentication I am using JWT method. According to some articles, storing and sending REFRESH TOKEN in HttpOnly Cookie is the a best and secure way. Since I am learning WebDevelopment I can’t able to find any source to about it. T…
Tag: django-rest-framework-simplejwt
How to resend verification email django restframework?
I can send a verification email upon registering the user so that the account can be activated. But how would one go about resending another verification email on an API? Here, I am making an activation link with a token in it and when the user opens the link it takes the token and verifies the user. But how …
How to test successful token claim with jwt
I’m using django rest simple jwt and I wanted to test a simple login and check the response data for the token and other custom data. So I tried with the APITestCase to create an user and then try a login with the same credentials. The results is a 401 instead a 200 with a token in response data. Here