File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
auth/src/providers/github Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export const requestGitHubJwtWithRedirect = ({
2020
2121 requestUrl . searchParams . set ( 'redirect_uri' , redirectUrl ?? currentUrl ) ;
2222
23+ // Note: GitHub Apps ignore this parameter and use permissions from app settings instead
2324 requestUrl . searchParams . set ( 'scope' , authScopes . join ( ' ' ) ) ;
2425
2526 // Used for security reasons. When the provider redirects to the application,
Original file line number Diff line number Diff line change 1- export type AuthScope = 'openid' | 'profile' | 'email' ;
2-
31/**
4- * Combination of OAuth scopes supported by GitHub.
2+ * OAuth scopes supported by GitHub.
3+ * Only applicable for OAuth Apps - GitHub Apps use permissions configured in app settings.
54 *
65 * - `'read:user'` is always required.
76 * - `'user:email'` is optional.
@@ -33,8 +32,8 @@ export interface GitHubRedirectOptions {
3332
3433 /**
3534 * OAuth scopes to request.
36- * Must begin with `'openid'` and include `'profile'`, `'email'`, or both .
37- * @default ['openid ', 'profile', ' email']
35+ * Optional - only used for OAuth Apps. GitHub Apps ignore this parameter .
36+ * @default ['read:user ', 'user: email']
3837 */
3938 authScopes ?: GitHubAuthScopes ;
4039
You can’t perform that action at this time.
0 commit comments