tpotjj

Results 10 comments of tpotjj

I don't fully understand what to do at this point. I can't simply copy and paste the example from this repo, since that results in a TS error. The above...

@Andrew-Chen-Wang Ready for review.

@Andrew-Chen-Wang do I need to make those migrations? Or is that something that happens throughout the release of a new major version? And is there anything else I need to...

Agree, I have implemented this in my own APIView this way: ```Python class Logout(APIView): """ The API for logging out a user -> blacklisting tokens """ permission_classes = (IsAuthenticated, )...

The `blacklist_token` is a method that I added to the User model (class) myself: ```Python def blacklist_token(self, token): outstanding_token = OutstandingToken.objects.get(token=token) BlacklistedToken.objects.create(token=outstanding_token) ``` And here is the **LogoutSerializer**: ```Python class...

@Chhunneng correct, but only for the time it is issued with, which is a configuration you can manage yourself. I've set this to 1min, which means that the client has...

@zhizhuoshuma I have created my own logic regarding login and authentication. Providing a user with the JWT token is done with `refresh = RefreshToken.for_user(self)` Now, copy/pasting everything here is a...

@zhizhuoshuma I don't have WeChat, I do have Telegram or Twitter: https://twitter.com/tpotjj