<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y0000AIokEMSQZOkta Classic EngineSingle Sign-OnAnswered2021-01-20T06:26:32.000Z2021-01-14T09:54:56.000Z2021-01-20T06:26:32.000Z

BruceH.39291 (Customer) asked a question.

Getting user info from oktaJwtVerifier.verifyAccessToken jwt object

I am using oktaJwtVerifier to verify an access token - which is working fine:

 

  return oktaJwtVerifier.verifyAccessToken(accessToken, expectedAudience)

    .then((jwt) => {

      console.log(jwt.claims);

. . .

 

What I want to do is to get information about the user - their name, what groups they belong to, etc. How do I do that? I assume that I can configure something somewhere to give those fields in the jwt.claims object? If not, what would I call to get user information?


This question is closed.
Loading
Getting user info from oktaJwtVerifier.verifyAccessToken jwt object