Getting user info from Session token

I am using Okta’s sign-in widget
once user signs in I get session token in my javascript. The i send it to my backend to verify and “completely” login user.
How can i get user’s information if have session token
Im trying to use GetCurrentUser api but it needs “api_token” and i am not sure where to get it.
Docs say “Fetches the current user linked to API token or session cookie”
But i have only session token.


In the signin widget doc you attached, you can refer the below use case to get userinfo and tokens.

oktaSignIn.authClient.token.getUserInfo().then(function(user) {
        document.getElementById("messageBox").innerHTML = "Hello, " + + "! You are *still* logged in! :)";
        document.getElementById("logout").style.display = 'block';
      }, function(error) {
          el: '#okta-login-container'
        }).then(function(tokens) {

          const idToken = tokens.idToken;
          document.getElementById("messageBox").innerHTML = "Hello, " + + "! You just logged in! :)";
          document.getElementById("logout").style.display = 'block';

user’s info can also be added to id token by adding custom claims.

Thanks, but once user signed in i want to send token to back end and get user information (the one that is returned by getUserInfo) via Okta’s APIs.
I can not find one that would take session token.

@gevorgter Here is a related discussion for how to get access token from session token.