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
serviceId: '{service}', // Must match OAuth provider
119
+
serviceId: '{service}', // Must match OAuth provider service key
120
+
requiredScopes: getScopesForService('{service}'), // Import from @/lib/oauth/utils
119
121
placeholder: 'Select account',
120
122
required: true,
121
123
}
122
124
```
123
125
126
+
**Scopes:** Always use `getScopesForService(serviceId)` from `@/lib/oauth/utils` for `requiredScopes`. Never hardcode scope arrays — the single source of truth is `OAUTH_PROVIDERS` in `lib/oauth/oauth.ts`.
127
+
128
+
**Scope descriptions:** When adding a new OAuth provider, also add human-readable descriptions for all scopes in `SCOPE_DESCRIPTIONS` within `lib/oauth/utils.ts`.
0 commit comments