Roman
Roman3w ago

Few claims are absent in getUserIdentity method's response

Hey) The acr, amr, and auth_time claims are missing, while I see other custom claims. What might be the reason? The query:
const identity = await fetchQuery(
api.identity.get,
{},
{ token: tokens?.accessToken },
);
const identity = await fetchQuery(
api.identity.get,
{},
{ token: tokens?.accessToken },
);
The function:
export const get = query({
args: {},
handler: async (ctx) => {
return await ctx.auth.getUserIdentity();
},
})
export const get = query({
args: {},
handler: async (ctx) => {
return await ctx.auth.getUserIdentity();
},
})
For the given JWT ID token (see the attached file) I get the following identity info (no acr, amr, and auth_time claims):
{
applicationId: 'e7963850-f8db-45e3-babe-2df73b09f886',
email: 'romankrds@yahoo.com',
emailVerified: true,
issuer: 'https://app-9ait4bhj0ah3.frontegg.com',
metadata: {},
name: 'rmn',
permissions: [
'fe.account-settings.read.app',
'fe.connectivity.*',
'fe.secure.*'
],
profilePictureUrl: 'https://www.gravatar.com/avatar/a4dea926e9d88df02bc569c128478acd?d=https://ui-avatars.com/api/rmn/128/random',
roles: [ 'Admin' ],
sid: 'e0c38577-5e27-40c1-80ab-7dc5f5a7a7ca',
subject: 'f9e86bdc-5a9f-4909-936f-2fcffc5c5288',
tenantId: 'd705f802-9b39-4e09-a661-47e90e485223',
tenantIds: [ 'd705f802-9b39-4e09-a661-47e90e485223' ],
tokenIdentifier: 'https://app-9ait4bhj0ah3.frontegg.com|f9e86bdc-5a9f-4909-936f-2fcffc5c5288',
type: 'userToken'
}
{
applicationId: 'e7963850-f8db-45e3-babe-2df73b09f886',
email: 'romankrds@yahoo.com',
emailVerified: true,
issuer: 'https://app-9ait4bhj0ah3.frontegg.com',
metadata: {},
name: 'rmn',
permissions: [
'fe.account-settings.read.app',
'fe.connectivity.*',
'fe.secure.*'
],
profilePictureUrl: 'https://www.gravatar.com/avatar/a4dea926e9d88df02bc569c128478acd?d=https://ui-avatars.com/api/rmn/128/random',
roles: [ 'Admin' ],
sid: 'e0c38577-5e27-40c1-80ab-7dc5f5a7a7ca',
subject: 'f9e86bdc-5a9f-4909-936f-2fcffc5c5288',
tenantId: 'd705f802-9b39-4e09-a661-47e90e485223',
tenantIds: [ 'd705f802-9b39-4e09-a661-47e90e485223' ],
tokenIdentifier: 'https://app-9ait4bhj0ah3.frontegg.com|f9e86bdc-5a9f-4909-936f-2fcffc5c5288',
type: 'userToken'
}
Why are not these three claims present while other custom claims are in place? If I'm calling the query with a React hook, the result is the same. My Convex version is 1.23.0. There is no errors in the console or Logs at Convex Dashboard.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?