JWT refresh not working as expected?

22 views
Skip to first unread message

rāma

unread,
Jun 23, 2016, 3:57:27 PM6/23/16
to web2py-users
Hi,
I followed the instruction:

 3) Use it!
        Now API users can obtain a token with

            http://.../app/default/user/jwt?username=...&password=....

        (returns json object with a token attribute)
        API users can refresh an existing token with

            http://.../app/default/user/jwt?token=...


Everytime I try to refresh the retrieved token (via http://.../app/default/user/jwt?token=), I get the error "token is expired". Besides that, the issued token can't seemed to be used to authenticate at all (json response is to redirect).

I changed the expiration parameter to a large number in models and later removed it, could it be that? I also had switched authenticating with username/email. I thought I had JWT working earlier today.
Reply all
Reply to author
Forward
0 new messages