We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22a030a commit 382d8abCopy full SHA for 382d8ab
apps/sim/lib/auth/auth.ts
@@ -87,7 +87,7 @@ import { getCanonicalScopesForProvider } from '@/lib/oauth/utils'
87
* This avoids 403 errors for external tenant users whose admin hasn't consented to Graph API scopes.
88
* The ID token is always returned when the openid scope is requested.
89
*/
90
-function getMicrosoftUserInfoFromIdToken(tokens: { accessToken: string }, providerId: string) {
+function getMicrosoftUserInfoFromIdToken(tokens: { accessToken?: string }, providerId: string) {
91
const idToken = (tokens as Record<string, unknown>).idToken as string | undefined
92
if (!idToken) {
93
logger.error(
0 commit comments