You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here you are automatically adding the 'user.read' scope if not found, but it causes a conflict when trying to use .default due to not allowing specific scopes with default scope, something like this:
.default scope can't be combined with resource-specific scopes.
I strongly suggest to either remove that condition or tell the function to get something like
If you try to use the component for OBO flow (which is possible), the helper.ts function is causing an error
export const getScopes = (graphScopes?: string[]) => { const scopes = graphScopes || []; if (!scopes.find((el: string) => el.toLowerCase() === "user.read")) { scopes.push("user.read"); } return scopes; };
here you are automatically adding the 'user.read' scope if not found, but it causes a conflict when trying to use .default due to not allowing specific scopes with default scope, something like this:
I strongly suggest to either remove that condition or tell the function to get something like
export const getScopes = (graphScopes?: string[]) => { const scopes = graphScopes || ['user.read']; return scopes; };
The text was updated successfully, but these errors were encountered: