Good day
I managed to Login a user using the Twilio SDK on the UI Builder, getting the sms code and successfully authenticated. Now when I take the user to the new screen, how do I keep that user token active? For example, I send through the json object of the user to the next page and when I use the block to get the user roles, I can see one of the roles are NotAuthenticatedUser. Thus I authenticated the user the previous screen and now the user is not authenticated again. Even if I use the set current user token on both pages, still not authenticated.
I am doing something wrong. Could you help me please to do this the correct way?
EDIT: Even right after calling the Login With Code Twilio code block, I get a user JSON object returned. I assume then the user is authenticated? Right after that I use the set current usertoken block to set the user token I received from the Login with Code block. When I then use the get current user roles block, I get again NotAuthenticatedUser as a role. App ID: 725521A2-5598-4241-FFA2-897A0E52B700
Regards