I was about to that by this
from rest_framework_jwt.serializers import VerifyJSONWebTokenSerializer
data = {'token': token}
valid_data = VerifyJSONWebTokenSerializer().validate(data)
user = valid_data['user']
Hope this helps any body like me.
On Sat, Sep 16, 2017 at 9:34 AM, Robin Lery
Thanks. But that doesn't verify the token.
On Fri, Sep 15, 2017 at 6:44 PM, oon arfiandwi
wrote:
>
> Hi,
>
> have you try to use jwt_decode_handler(token)?
> I found this on utils.py
>
> I check the source code of verify token,
> there's reference to decode handler
Hi,
have you try to use jwt_decode_handler(token)?
I found this on utils.py
I check the source code of verify token,
there's reference to decode handler inside the code.
--
sincerely,
Oon Arfiandwi
On Fri, Sep 15, 2017 at 10:11 AM, Robin Lery wrote:
> I am using
3 matches
Mail list logo