Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(providers): conform Twitch provider to spec with escape hatch #6365

Merged
merged 6 commits into from
Jan 19, 2023

Conversation

balazsorban44
Copy link
Member

Fixes #6363

This PR introduces a new conform() callback for the token OAuth config option. It's marked as internal for now, and not expected to be used in user-land. This is an escape hatch to work around non-conformities in our built-in providers in a way that does not require a full request override, but also does not add special handling to providers into the core.

This is a last resort, and ideally, such issues should be fixed on the Provider side. If you see this method and have the power, we encourage you to put pressure on the given provider so they fix the issue on their side.

Once a non-conformity is fixed, the conform() method will be pass-through and will show a warning. In this case, you can file an issue on this repo so we can remove the workaround.

@vercel
Copy link

vercel bot commented Jan 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 11, 2023 at 0:53AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
next-auth-docs ⬜️ Ignored (Inspect) Jan 11, 2023 at 0:53AM (UTC)

@github-actions github-actions bot added core Refers to `@auth/core` providers labels Jan 11, 2023
@balazsorban44 balazsorban44 changed the title Fix/conform twitch fix(providers): conform Twitch provider to spec with escape hatch Jan 11, 2023
Copy link
Member

@ThangHuuVu ThangHuuVu left a comment

Choose a reason for hiding this comment

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

LGTM tested with Twitch login before and after this PR! 🙌

@balazsorban44 balazsorban44 merged commit b2450ef into main Jan 19, 2023
@balazsorban44 balazsorban44 deleted the fix/conform-twitch branch January 19, 2023 10:28
@balazsorban44 balazsorban44 restored the fix/conform-twitch branch March 2, 2023 19:09
@ThangHuuVu ThangHuuVu deleted the fix/conform-twitch branch June 2, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core` providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants