Skip to content

Configurable OAuth Scopes via Environment Variables #1055

Closed
@torkashvand

Description

@torkashvand

Issue:
The authorization scopes for OAuth are currently hardcoded in the NextAuth.js configuration, limiting operational flexibility across different environments.

Proposed Solution:
Implement the ability to set OAuth scopes through environment variables, allowing for easy adjustments without code changes.

Changes Proposed:

authorization: { params: { scope: process.env.NEXTAUTH_AUTHORIZATION_SCOPE ?? 'openid profile' } },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions