Hello,
I want to implement a token refresh/rotation and I was wondering if the Weweb team can allow us to overwrite/update the AccessToken generated by the Xano plugin? This way, I won’t need to rely on REST API as an alternate measure to keep users logged in which would create complication because I’d have to keep both the native Xano plugin object/flow and whatever REST API flow I am using to check & refresh the token.
I think a new feature is going to be dropped next week which will enable a Weweb action to set a new authToken. (You may want to wait to see if that is true.)
Alternatively, I’ve been using similar Javascript to others to achieve it.
Have your action that is returning the refreshed authToken, and then in a JS action use the code below (replacing the relevant variable id and workflow action id)