Skip to content

Add checkbox to Discord OAuth provider#452

Open
asiebens wants to merge 1 commit intogeldata:mainfrom
asiebens:main
Open

Add checkbox to Discord OAuth provider#452
asiebens wants to merge 1 commit intogeldata:mainfrom
asiebens:main

Conversation

@asiebens
Copy link

@asiebens asiebens commented Jun 3, 2025

Linked with a PR on the main gel project.

Adds a checkbox when the Discord OAuth provider is selected that ask whether the user is always shown the discord consent form or only for new users or when scopes have changed.

@asiebens asiebens changed the title Add checkbox when using Discord provider to always show consent form … Add checkbox to Discord OAuth provider Jun 3, 2025
Copy link
Member

@jaclarke jaclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. It looks good, it just needs some 'version' checks so the option isn't shown when the server doesn't support it. I think updating the providerInfo here: https://github.com/geldata/gel-ui/blob/main/shared/studio/tabs/auth/state/index.tsx#L233-L245 to check if the property exists in the introspected schema data for the discord oauth type may be the best approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments