Re: Validate and get the user using the jwt token inside a view

2017-09-16 Thread Robin Lery
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

Re: Validate and get the user using the jwt token inside a view

2017-09-15 Thread 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

Re: Validate and get the user using the jwt token inside a view

2017-09-15 Thread oon arfiandwi
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