I’m developed an API with cake by using REST. From m app, I authenticate user with a json web token by using the plugin JWT/ADmad.
Everything works fine if I log in and log out. But when I need to refresh the token, it’s not working. An exception is raised as “expired token”. I found no way to debug or to intercept the expired token and be able to refresh the token.
I tried by using two tokens as mentioned but even if I send the refresh token to check if it’s still valid from cake, it raised an exception: Expired token.
I can do nothing more, no debbug, no error log, … except Expired token. I checked the plugin code the exception should right. Does someone got this issue before ?
So I’m wondering how to refresh the token if this one is expired…I don’t find any example, so if someone have an idea on how to solve this with cake ?