-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(web): expose Web API compatible version of next-auth
#5536
Conversation
Instead of passing url and params around as a string and an object, we parse them into a `URL` instance.
{theme.brandColor && ( | ||
<style | ||
dangerouslySetInnerHTML={{ | ||
__html: `:root {--brand-color: ${theme.brandColor}}`, |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
}} | ||
/> | ||
)} | ||
{theme.logo && <img src={theme.logo} alt="Logo" className="logo" />} |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
{providers.map((provider, i) => ( | ||
<div key={provider.id} className="provider"> | ||
{provider.type === "oauth" || provider.type === "oidc" ? ( | ||
<form action={provider.signinUrl} method="POST"> |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
src={`${ | ||
provider.style.logo.startsWith("/") ? logos : "" | ||
}${provider.style.logo}`} |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
src={`${ | ||
provider.style.logo.startsWith("/") ? logos : "" | ||
}${provider.style.logoDark}`} |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
providers[i - 1].type !== "email" && | ||
providers[i - 1].type !== "credentials" && <hr />} | ||
{provider.type === "email" && ( | ||
<form action={provider.signinUrl} method="POST"> |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
</form> | ||
)} | ||
{provider.type === "credentials" && ( | ||
<form action={provider.callbackUrl} method="POST"> |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LFG 🚢
Any docs on using this? |
Introducing
next-auth/web
, a fully Web API compatible version of NextAuth.js.Supersedes #4299
This PR is based on #4769, which has to be merged first. (Diff is therefore currently bigger than it is supposed to be.)
crypto
interopauthorization
endpointcallback
(token
&userinfo
endpoints)