We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 921073c + 1fbfe0e commit d24ca88Copy full SHA for d24ca88
1 file changed
lib/sdk/utilities/token-claims.ts
@@ -150,10 +150,10 @@ export const getUserOrganizations = async (
150
sessionManager: SessionManager,
151
validationDetails: TokenValidationDetailsType
152
): Promise<{ orgCodes: string[] }> => ({
153
- orgCodes: (await getClaimValue(
+ orgCodes: ((await getClaimValue(
154
sessionManager,
155
'org_codes',
156
'id_token',
157
validationDetails
158
- )) as string[],
+ )) ?? []) as string[],
159
});
0 commit comments