Added djangorestframework-simplejwt to requirements
updated README file how we can check if the tokens work :smile:
added view HelloView that you can't access without a token ( permission_classes = (IsAuthenticated,) ) I added a view so we could see how it works. However, there are no views in DRF, so I should remove this before merge.
added two, new endpoints for token and url for view HelloView
WIP
Added djangorestframework-simplejwt to requirements
updated README file how we can check if the tokens work :smile:
added view
HelloView
that you can't access without a token (permission_classes = (IsAuthenticated,)
) I added a view so we could see how it works. However, there are no views in DRF, so I should remove this before merge.added two, new endpoints for token and url for view
HelloView
you can also hit http://localhost:8000/api/users/students with token, I added
permission_classes = (IsAuthenticated,)
to StudentsResource classYou may paste token here https://jwt.io/ to see decoded header, payload and verify signature