How to get OAuth2 token on client side?

I use Auth0 with Wappler actions like this:image

From what I’ve seen the token are in the server session and I use redis session so deployment don’t break client session.

I’m trying now to use a library (formio) to render forms And I would like to use the Auth0 tokens I’ve generated with Wappler with this lib. For that I need to get my token (formio doc) but it’s only inside the server session for the moment.

Any idea how I can send the token to the users?

Hi @Eldynn, did you ever figure out how to retrieve and pass your token to an API? I’m also using Auth0 and I am able to login and be taken to the home page of my site, but I am unable to figure out how to retrieve the token and pass it as an Authorization header to my along with my API Action.

I use my own oauth2 provider (fusionauth) but in my response from login, I get the access token. That token in my case is the JWT.

In my example i’m calling “expires_in” as a test I was performing on the expiring. For your case, I would have saved that into a session variable called something like “token”, and then when I went to use a subsequent API call, I would have the session variable available as an input that I could use is the API actions to another service. For example:

Hit me up at lance@spearstone.partners if you need more help than that.