Compare commits

...

18 Commits

Author SHA1 Message Date
Balázs Orbán
c385cf8c7c chore(release): bump version [skip ci] 2023-01-24 02:47:03 +01:00
Balázs Orbán
53fa46744c chore: match core 2023-01-24 02:40:29 +01:00
StachowiakDawid
451eaaabd2 fix: Allow adding own logo to provider (#6465) 2023-01-24 02:35:30 +01:00
Balázs Orbán
f54424c216 fix(next-auth): remove engines 2023-01-24 02:24:45 +01:00
Balázs Orbán
09bcc1d504 fix(providers): default image to null for Azure AD
Fixes #6482
2023-01-24 02:24:35 +01:00
Chiemerie Arum
6ecf9cb93d docs(client): Improve grammar (#6444)
Improve grammar
2023-01-20 11:14:40 +00:00
Judicael
ba2711d279 docs: Remove Demo Identity server 4 (#6354)
Since the demo is not working anymore (removed), we should remove the demo identity server from the docs
2023-01-10 12:05:59 +00:00
Balázs Orbán
03881bf98f chore: fix sync GH Action pat 2023-01-07 08:29:07 +01:00
Balázs Orbán
230164f751 chore: bump version [skip release] 2023-01-07 08:22:24 +01:00
Balázs Orbán
fecf5e0a1c chore: bump monorepo release script 2023-01-07 08:21:32 +01:00
Balázs Orbán
400d0f1842 fix: move logos 2023-01-07 08:18:35 +01:00
Luis Cadillo
39657bf06c docs: remove outdated nested middleware info (#5181)
Co-authored-by: Balázs Orbán <info@balazsorban.com>
2022-12-31 09:36:53 +00:00
Nicholas
d1dd8d95c4 chore(docs): fix middleware verbiage (#5981)
* Make documentation easier to understand

* Apply suggestions from code review

Co-authored-by: Nico Domino <yo@ndo.dev>

Co-authored-by: Nico Domino <yo@ndo.dev>
Co-authored-by: Balázs Orbán <info@balazsorban.com>
2022-12-31 08:33:36 +00:00
Jesús Ferretti
554ec439c9 fix(docs): import NextAuth correctly (#6206)
fix(docs): fix typo
2022-12-27 23:50:33 +01:00
Iswar Mondal
8e4db3899a docs: Replaced the word peer dependency (#6197) 2022-12-27 14:27:31 +01:00
Rob Hyrkiel
444b99ee96 docs: fix broken links related to issue #6157 (#6183) 2022-12-26 11:45:10 +01:00
Nico Domino
f12b527300 chore(docs): fix aloglia docusaurus.config.js settings (v4) (#6160)
chore(docs): fix docusaurus algolia config
2022-12-23 12:39:47 +01:00
Balázs Orbán
ac48211967 chore: fix edit link
Mentioned in #6142
2022-12-22 15:48:39 +00:00
44 changed files with 114 additions and 160 deletions

View File

@@ -14,5 +14,5 @@ jobs:
# Can update to v1 when https://github.com/BetaHuhn/repo-file-sync-action/issues/168 is resolved
uses: BetaHuhn/repo-file-sync-action@v1.16.5
with:
GH_PAT: ${{ secrets.SYNC_EXAMPLE_PAT }}
GH_PAT: ${{ secrets.GH_PAT_CLASSIC }}
SKIP_PR: true

View File

@@ -14,7 +14,7 @@ Otherwise, if you only want to get the session token, see [`getToken`](/tutorial
In `[...nextauth].ts`:
```ts
import { NextAuth } from 'next-auth'
import NextAuth from 'next-auth'
import type { NextAuthOptions } from 'next-auth'
export const authOptions: NextAuthOptions = {

View File

@@ -78,7 +78,7 @@ If you are using an OAuth v1 provider, check your OAuth v1 provider settings, es
3. `openid-client` version mismatch
If you are seeing `expected 200 OK with body but no body was returned`, it might have happened due to `openid-client` (which is peer dependency) node version mismatch. For instance, `openid-client` requires `>=14.2.0` for `lts/fermium` and has similar limits for the other versions. For the full list of the compatible node versions please see [package.json](https://github.com/panva/node-openid-client/blob/2a84e46992e1ebeaf685c3f87b65663d126e81aa/package.json#L78).
If you are seeing `expected 200 OK with body but no body was returned`, it might have happened due to `openid-client` (which is a dependency we rely on) node version mismatch. For instance, `openid-client` requires `>=14.2.0` for `lts/fermium` and has similar limits for the other versions. For the full list of the compatible node versions please see [package.json](https://github.com/panva/node-openid-client/blob/2a84e46992e1ebeaf685c3f87b65663d126e81aa/package.json#L78).
#### OAUTH_CALLBACK_ERROR

View File

@@ -67,7 +67,7 @@ _If you use a custom credentials provider user accounts will not be persisted in
</summary>
<p>
NextAuth.js was originally designed for use with Next.js and Serverless. However, today you could use the NextAuth.js core with any other framework. Checkout the examples for <a href="https://github.com/nextauthjs/next-auth/tree/main/apps/example-gatsby" target="_blank">Gatsby</a> and <a href="https://github.com/nextauthjs/next-auth/tree/main/apps/playground-sveltekit" target="_blank">SvelteKit</a>. If you would add another integration with other frameworks, feel free to work on it and send a pull request. Make sure to check if there's any on-going work before open a new issue.
NextAuth.js was originally designed for use with Next.js and Serverless. However, today you could use the NextAuth.js core with any other framework. Checkout the examples for <a href="https://github.com/nextauthjs/next-auth/tree/main/apps/playground-gatsby" target="_blank">Gatsby</a> and <a href="https://sveltekit.authjs.dev/" target="_blank">SvelteKit</a>. If you would add another integration with other frameworks, feel free to work on it and send a pull request. Make sure to check if there's any on-going work before open a new issue.
</p>
</details>

View File

@@ -65,7 +65,7 @@ export default function Component() {
### Require session
Due to the way how Next.js handles `getServerSideProps` and `getInitialProps`, every protected page load has to make a server-side request to check if the session is valid and then generate the requested page (SSR). This increases server load, and if you are good with making the requests from the client, there is an alternative. You can use `useSession` in a way that makes sure you always have a valid session. If after the initial loading state there was no session found, you can define the appropriate action to respond.
Due to the way Next.js handles `getServerSideProps` and `getInitialProps`, every protected page load has to make a server-side request to check if the session is valid and then generate the requested page (SSR). This increases server load, and if you are good with making the requests from the client, there is an alternative. You can use `useSession` in a way that makes sure you always have a valid session. If after the initial loading state there was no session found, you can define the appropriate action to respond.
The default behavior is to redirect the user to the sign-in page, from where - after a successful login - they will be sent back to the page they started on. You can also define an `onUnauthenticated()` callback, if you would like to do something else:

View File

@@ -35,27 +35,3 @@ providers: [
]
...
```
## Demo IdentityServer
The configuration below is for the demo server at https://demo.identityserver.io/
If you want to try it out, you can copy and paste the configuration below.
You can sign in to the demo service with either <b>bob/bob</b> or <b>alice/alice</b>.
```js
import IdentityServer4Provider from `next-auth/providers/identity-server4`
...
providers: [
IdentityServer4Provider({
id: "demo-identity-server",
name: "Demo IdentityServer4",
authorization: { params: { scope: "openid profile email api offline_access" } },
issuer: "https://demo.identityserver.io/",
clientId: "interactive.confidential",
clientSecret: "secret",
})
}
...
```

View File

@@ -42,7 +42,7 @@ export default function Page() {
### Next.js (Middleware)
With NextAuth.js 4.2.0 and Next.js 12, you can now protect your pages via the middleware pattern more easily. If you would like to protect all pages, you can create a `middleware.js` file in your root `pages` directory which looks like this:
With NextAuth.js 4.2.0 and Next.js 12, you can now protect your pages via the middleware pattern more easily. If you would like to protect all pages, you can create a `middleware.js` file at the root or in the src directory (same level as your `pages`) which looks like this:
```js title="/middleware.js"
export { default } from "next-auth/middleware"

View File

@@ -23,6 +23,8 @@ module.exports = {
apiKey: "97c0894508f2d1d4a2fef4fe6db28448",
indexName: "next-auth-v4",
searchParameters: {},
contextualSearch: false,
externalUrlRegex: "authjs\\.dev|next-auth\\.js\\.org",
},
navbar: {
title: "NextAuth.js",
@@ -178,7 +180,7 @@ module.exports = {
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/nextauthjs/next-auth/edit/main/docs",
editUrl: "https://github.com/nextauthjs/next-auth/edit/v4/docs",
lastVersion: "current",
showLastUpdateAuthor: true,
showLastUpdateTime: true,

View File

@@ -19,7 +19,7 @@
},
"devDependencies": {
"@actions/core": "^1.6.0",
"@balazsorban/monorepo-release": "0.1.0",
"@balazsorban/monorepo-release": "0.1.8",
"@types/jest": "^28.1.3",
"@types/node": "^17.0.25",
"@typescript-eslint/eslint-plugin": "^5.10.2",

View File

@@ -1,6 +1,6 @@
{
"name": "next-auth",
"version": "4.18.7",
"version": "4.18.9",
"description": "Authentication for Next.js",
"homepage": "https://next-auth.js.org",
"repository": "https://github.com/nextauthjs/next-auth.git",
@@ -127,8 +127,5 @@
"react": "^18",
"react-dom": "^18",
"whatwg-fetch": "^3.6.2"
},
"engines": {
"node": "^12.19.0 || ^14.15.0 || ^16.13.0 || ^18.12.0"
}
}

View File

@@ -74,6 +74,7 @@ export default function SigninPage(props: SignInServerPageParams) {
const error = errorType && (errors[errorType] ?? errors.default)
const logos = "https://authjs.dev/img/providers"
return (
<div className="signin">
{theme.brandColor && (
@@ -116,12 +117,25 @@ export default function SigninPage(props: SignInServerPageParams) {
}
>
{provider.style?.logo && (
<img id="provider-logo" src={provider.style.logo} />
<img
loading="lazy"
height={24}
width={24}
id="provider-logo"
src={`${
provider.style.logo.startsWith("/") ? logos : ""
}${provider.style.logo}`}
/>
)}
{provider.style?.logoDark && (
<img
loading="lazy"
height={24}
width={24}
id="provider-logo-dark"
src={provider.style.logoDark}
src={`${
provider.style.logo.startsWith("/") ? logos : ""
}${provider.style.logoDark}`}
/>
)}
<span>Sign in with {provider.name}</span>

View File

@@ -118,8 +118,8 @@ export default function Apple<P extends AppleProfile>(
},
checks: ["pkce"],
style: {
logo: 'https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/apple.svg',
logoDark: 'https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/apple-dark.svg',
logo: "apple.svg",
logoDark: "apple-dark.svg",
bg: "#fff",
text: "#000",
bgDark: "#000",

View File

@@ -32,9 +32,8 @@ export default function Atlassian<P extends AtlassianProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/atlassian.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/atlassian-dark.svg",
logo: "atlassian.svg",
logoDark: "atlassian-dark.svg",
bg: "#0052cc",
text: "#fff",
bgDark: "#fff",

View File

@@ -27,9 +27,8 @@ export default function Auth0<P extends Auth0Profile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/auth0.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/auth0-dark.svg",
logo: "auth0.svg",
logoDark: "auth0-dark.svg",
bg: "#fff",
text: "#EB5424",
bgDark: "#EB5424",

View File

@@ -43,9 +43,8 @@ export default function AzureADB2C<P extends AzureB2CProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/azure.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/azure-dark.svg",
logo: "azure.svg",
logoDark: "azure-dark.svg",
bg: "#fff",
text: "#0072c6",
bgDark: "#0072c6",

View File

@@ -33,37 +33,32 @@ export default function AzureAD<P extends AzureADProfile>(
},
async profile(profile, tokens) {
// https://docs.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0#examples
const profilePicture = await fetch(
const response = await fetch(
`https://graph.microsoft.com/v1.0/me/photos/${profilePhotoSize}x${profilePhotoSize}/$value`,
{
headers: {
Authorization: `Bearer ${tokens.access_token}`,
},
}
{ headers: { Authorization: `Bearer ${tokens.access_token}` } }
)
// Confirm that profile photo was returned
if (profilePicture.ok) {
const pictureBuffer = await profilePicture.arrayBuffer()
const pictureBase64 = Buffer.from(pictureBuffer).toString("base64")
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: `data:image/jpeg;base64, ${pictureBase64}`,
}
} else {
return {
id: profile.sub,
name: profile.name,
email: profile.email,
}
let image
// TODO: Do this without Buffer
if (response.ok && typeof Buffer !== "undefined") {
try {
const pictureBuffer = await response.arrayBuffer()
const pictureBase64 = Buffer.from(pictureBuffer).toString("base64")
image = `data:image/jpeg;base64, ${pictureBase64}`
} catch {}
}
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: image ?? null,
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/azure.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/azure-dark.svg",
logo: "azure.svg",
logoDark: "azure-dark.svg",
bg: "#fff",
text: "#0072c6",
bgDark: "#0072c6",

View File

@@ -27,9 +27,8 @@ export default function BattleNet<P extends BattleNetProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/battlenet.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/battlenet-dark.svg",
logo: "battlenet.svg",
logoDark: "battlenet-dark.svg",
bg: "#fff",
text: "#148eff",
bgDark: "#148eff",

View File

@@ -16,9 +16,8 @@ export default function Box(options) {
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/box.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/box-dark.svg",
logo: "box.svg",
logoDark: "box-dark.svg",
bg: "#fff",
text: "#0075C9",
bgDark: "#0075C9",

View File

@@ -25,9 +25,8 @@ export default function Cognito<P extends CognitoProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/cognito.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/cognito.svg",
logo: "cognito.svg",
logoDark: "cognito.svg",
bg: "#fff",
text: "#C17B9E",
bgDark: "#fff",

View File

@@ -45,9 +45,8 @@ export default function Discord<P extends DiscordProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/discord.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/discord-dark.svg",
logo: "discord.svg",
logoDark: "discord-dark.svg",
bg: "#fff",
text: "#7289DA",
bgDark: "#7289DA",

View File

@@ -42,9 +42,8 @@ export default function Facebook<P extends FacebookProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/facebook.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/facebook-dark.svg",
logo: "facebook.svg",
logoDark: "facebook-dark.svg",
bg: "#fff",
text: "#006aff",
bgDark: "#006aff",

View File

@@ -51,9 +51,8 @@ export default function Foursquare(options) {
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/foursquare.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/foursquare-dark.svg",
logo: "foursquare.svg",
logoDark: "foursquare-dark.svg",
bg: "#fff",
text: "#000",
bgDark: "#000",

View File

@@ -18,9 +18,8 @@ export default function Freshbooks(options) {
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/freshbooks.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/freshbooks-dark.svg",
logo: "freshbooks.svg",
logoDark: "freshbooks-dark.svg",
bg: "#fff",
text: "#0075dd",
bgDark: "#0075dd",

View File

@@ -99,9 +99,8 @@ export default function Github<P extends GithubProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/github.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/github-dark.svg",
logo: "github.svg",
logoDark: "github-dark.svg",
bg: "#fff",
bgDark: "#000",
text: "#000",

View File

@@ -68,9 +68,8 @@ export default function GitLab<P extends GitLabProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/gitlab.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/gitlab-dark.svg",
logo: "gitlab.svg",
logoDark: "gitlab-dark.svg",
bg: "#fff",
text: "#FC6D26",
bgDark: "#FC6D26",

View File

@@ -38,9 +38,8 @@ export default function Google<P extends GoogleProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/google.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/google.svg",
logo: "google.svg",
logoDark: "google.svg",
bgDark: "#fff",
bg: "#fff",
text: "#000",

View File

@@ -65,9 +65,8 @@ export default function HubSpot<P extends HubSpotProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/hubspot.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/hubspot-dark.svg",
logo: "hubspot.svg",
logoDark: "hubspot-dark.svg",
bg: "#fff",
text: "#ff7a59",
bgDark: "#ff7a59",

View File

@@ -47,9 +47,8 @@ export default function Instagram(options) {
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/instagram.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/instagram.svg",
logo: "instagram.svg",
logoDark: "instagram.svg",
bg: "#fff",
text: "#000",
bgDark: "#fff",

View File

@@ -44,9 +44,8 @@ export default function Keycloak<P extends KeycloakProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/keycloak.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/keycloak.svg",
logo: "keycloak.svg",
logoDark: "keycloak.svg",
bg: "#fff",
text: "#000",
bgDark: "#fff",

View File

@@ -34,8 +34,8 @@ export default function LINE<P extends LineProfile>(
id_token_signed_response_alg: "HS256",
},
style: {
logo: 'https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/line.svg',
logoDark: 'https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/line.svg',
logo: "line.svg",
logoDark: "line.svg",
bg: "#fff",
text: "#00C300",
bgDark: "#00C300",

View File

@@ -56,9 +56,8 @@ export default function LinkedIn<P extends LinkedInProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/linkedin.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/linkedin-dark.svg",
logo: "linkedin.svg",
logoDark: "linkedin-dark.svg",
bg: "#fff",
text: "#069",
bgDark: "#069",

View File

@@ -16,9 +16,8 @@ export default function Mailchimp(options) {
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/mailchimp.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/mailchimp-dark.svg",
logo: "mailchimp.svg",
logoDark: "mailchimp-dark.svg",
bg: "#fff",
text: "#000",
bgDark: "#000",

View File

@@ -53,9 +53,8 @@ export default function Okta<P extends OktaProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/okta.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/okta-dark.svg",
logo: "okta.svg",
logoDark: "okta-dark.svg",
bg: "#fff",
text: "#000",
bgDark: "#000",

View File

@@ -30,9 +30,8 @@ export default function Patreon<P extends PatreonProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/patreon.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/patreon.svg",
logo: "patreon.svg",
logoDark: "patreon.svg",
bg: "#fff",
text: "#e85b46",
bgDark: "#000",

View File

@@ -50,9 +50,8 @@ export default function Slack<P extends SlackProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/slack.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/slack.svg",
logo: "slack.svg",
logoDark: "slack.svg",
bg: "#fff",
text: "#000",
bgDark: "#000",

View File

@@ -30,9 +30,8 @@ export default function Spotify<P extends SpotifyProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/spotify.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/spotify.svg",
logo: "spotify.svg",
logoDark: "spotify.svg",
bg: "#fff",
text: "#2ebd59",
bgDark: "#fff",

View File

@@ -54,9 +54,8 @@ export default function TodoistProvider<P extends TodoistProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/todoist.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/todoist.svg",
logo: "todoist.svg",
logoDark: "todoist.svg",
bg: "#fff",
text: "#E44332",
bgDark: "#000",

View File

@@ -52,9 +52,8 @@ export default function Trakt<P extends TraktUser>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/trakt.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/trakt-dark.svg",
logo: "trakt.svg",
logoDark: "trakt-dark.svg",
bg: "#fff",
text: "#ED2224",
bgDark: "#ED2224",

View File

@@ -37,9 +37,8 @@ export default function Twitch<P extends TwitchProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/twitch.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/twitch-dark.svg",
logo: "twitch.svg",
logoDark: "twitch-dark.svg",
bg: "#fff",
text: "#65459B",
bgDark: "#65459B",

View File

@@ -120,9 +120,8 @@ export function TwitterLegacy<
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/twitter.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/twitter-dark.svg",
logo: "twitter.svg",
logoDark: "twitter-dark.svg",
bg: "#fff",
text: "#1da1f2",
bgDark: "#1da1f2",
@@ -216,9 +215,8 @@ export default function Twitter<
},
checks: ["pkce", "state"],
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/twitter.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/twitter-dark.svg",
logo: "twitter.svg",
logoDark: "twitter-dark.svg",
bg: "#fff",
text: "#1da1f2",
bgDark: "#1da1f2",

View File

@@ -306,9 +306,8 @@ export default function VK<P extends Record<string, any> = VkProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/vk.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/vk-dark.svg",
logo: "vk.svg",
logoDark: "vk-dark.svg",
bg: "#fff",
text: "#07F",
bgDark: "#07F",

View File

@@ -181,9 +181,8 @@ export default function Wikimedia<P extends WikimediaProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/wikimedia.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/wikimedia-dark.svg",
logo: "wikimedia.svg",
logoDark: "wikimedia-dark.svg",
bg: "#fff",
text: "#000",
bgDark: "#000",

View File

@@ -45,9 +45,8 @@ export default function WorkOS<P extends WorkOSProfile>(
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/workos.svg",
logoDark:
"https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/workos-dark.svg",
logo: "workos.svg",
logoDark: "workos-dark.svg",
bg: "#fff",
text: "#6363f1",
bgDark: "#6363f1",

8
pnpm-lock.yaml generated
View File

@@ -8,7 +8,7 @@ importers:
.:
specifiers:
'@actions/core': ^1.6.0
'@balazsorban/monorepo-release': 0.1.0
'@balazsorban/monorepo-release': 0.1.8
'@types/jest': ^28.1.3
'@types/node': ^17.0.25
'@typescript-eslint/eslint-plugin': ^5.10.2
@@ -30,7 +30,7 @@ importers:
typescript: 4.8.4
devDependencies:
'@actions/core': 1.9.0
'@balazsorban/monorepo-release': 0.1.0
'@balazsorban/monorepo-release': 0.1.8
'@types/jest': 28.1.3
'@types/node': 17.0.45
'@typescript-eslint/eslint-plugin': 5.29.0_k4l66av2tbo6kxzw52jzgbfzii
@@ -5099,8 +5099,8 @@ packages:
to-fast-properties: 2.0.0
dev: true
/@balazsorban/monorepo-release/0.1.0:
resolution: {integrity: sha512-ZzOZnAALCJAkiXYs/7Iee5H/SBhK7bHVUcJzKvBVSNtntwm7GfBWvWJqxIQbi2g+FeeKAz5JhYr7jsJBRQi0uA==}
/@balazsorban/monorepo-release/0.1.8:
resolution: {integrity: sha512-PHYQ25gUdj1SABKJBYg6Wy4X5sxyF9OEsBJnuQWnBy0i1SsGaWoo+b42GExgLBXMCLUB7zCVg1uQwEG97aHz/w==}
engines: {node: '>=16.16.0'}
hasBin: true
dependencies: