Welcome to the Kinde community.

A
A
A
M
T
Members
GlobalSystemMediaTransportContro
G
GlobalSystemMediaTransportContro
Offline, last seen 3 weeks ago
Joined September 23, 2024
Hi,

I'm not getting an email field in the access token despite having a scope of "email". However, my friend has the same scope, and he is getting it?

We are both using the "frontend javascript app" type.
2 comments
G
A
I am using the jwtVerify function and I am getting the error in the title.

I am passing in the following things, which are definitely not null:

issuerBaseUrl in the first parameter, and then in the second parameter I pass an option that looks like this:

Plain Text
{
    issuerBaseUrl: config.issuerBaseUrl,
    secret: config.clientSecret!,
    clientId: config.clientId!,
    grantType: "AUTHORIZATION_CODE"
}


I still get this failedAssertion:

Plain Text
 failedAssertion: { actual: undefined, expected: [ 'MYKINDESITE.kinde.com' ] }


I am using the access token from the frontend, which it gets via a generic OIDC client. My tokens look like this:

Plain Text
{
  "aud": [],
  "iat": 1706383810,
  "jti": "5848e275-911a-4fcf-a7f0-dbf30a920fee",
  "scp": []
}


I'm stuck and I think I'm confused. Am I using the wrong kind of token? Do I have something misconfigured somewhere?
12 comments
G
A