@auth/core
Advanced tools
Comparing version 0.13.0 to 0.14.0
{ | ||
"name": "@auth/core", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "Authentication for the Web.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -70,2 +70,15 @@ import type { CommonProviderOptions } from "./index.js"; | ||
* | ||
* See the [callbacks documentation](/reference/configuration/auth-config#callbacks) for more information on how to interact with the token. For example, you can add additional information to the token by returning an object from the `jwt()` callback: | ||
* | ||
* ```js | ||
* callbacks: { | ||
* async jwt(token, user, account, profile, isNewUser) { | ||
* if (user) { | ||
* token.id = user.id | ||
* } | ||
* return token | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* @example | ||
@@ -72,0 +85,0 @@ * ```js |
@@ -20,2 +20,15 @@ /** | ||
* | ||
* See the [callbacks documentation](/reference/configuration/auth-config#callbacks) for more information on how to interact with the token. For example, you can add additional information to the token by returning an object from the `jwt()` callback: | ||
* | ||
* ```js | ||
* callbacks: { | ||
* async jwt(token, user, account, profile, isNewUser) { | ||
* if (user) { | ||
* token.id = user.id | ||
* } | ||
* return token | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* @example | ||
@@ -22,0 +35,0 @@ * ```js |
@@ -1,2 +0,2 @@ | ||
export type OAuthProviderType = "42-school" | "apple" | "asgardeo" | "atlassian" | "auth0" | "authentik" | "azure-ad-b2c" | "azure-ad" | "azure-devops" | "battlenet" | "beyondidentity" | "box" | "boxyhq-saml" | "bungie" | "cognito" | "coinbase" | "descope" | "discord" | "dropbox" | "duende-identity-server6" | "eveonline" | "facebook" | "faceit" | "foursquare" | "freshbooks" | "fusionauth" | "github" | "gitlab" | "google" | "hubspot" | "identity-server4" | "instagram" | "kakao" | "keycloak" | "line" | "linkedin" | "mailchimp" | "mailru" | "mattermost" | "medium" | "naver" | "netlify" | "notion" | "okta" | "onelogin" | "osso" | "osu" | "passage" | "patreon" | "pinterest" | "pipedrive" | "reddit" | "salesforce" | "slack" | "spotify" | "strava" | "todoist" | "trakt" | "twitch" | "twitter" | "united-effects" | "vk" | "wikimedia" | "wordpress" | "workos" | "yandex" | "zitadel" | "zoho" | "zoom"; | ||
export type OAuthProviderType = "42-school" | "apple" | "asgardeo" | "atlassian" | "auth0" | "authentik" | "azure-ad-b2c" | "azure-ad" | "azure-devops" | "battlenet" | "beyondidentity" | "box" | "boxyhq-saml" | "bungie" | "click-up" | "cognito" | "coinbase" | "descope" | "discord" | "dropbox" | "duende-identity-server6" | "eveonline" | "facebook" | "faceit" | "foursquare" | "freshbooks" | "fusionauth" | "github" | "gitlab" | "google" | "hubspot" | "identity-server4" | "instagram" | "kakao" | "keycloak" | "line" | "linkedin" | "mailchimp" | "mailru" | "mastodon" | "mattermost" | "medium" | "naver" | "netlify" | "notion" | "okta" | "onelogin" | "osso" | "osu" | "passage" | "patreon" | "pinterest" | "pipedrive" | "reddit" | "salesforce" | "slack" | "spotify" | "strava" | "todoist" | "trakt" | "twitch" | "twitter" | "united-effects" | "vk" | "wikimedia" | "wordpress" | "workos" | "yandex" | "zitadel" | "zoho" | "zoom"; | ||
//# sourceMappingURL=oauth-types.d.ts.map |
@@ -80,2 +80,15 @@ import type { CommonProviderOptions } from "./index.js" | ||
* ::: | ||
* | ||
* See the [callbacks documentation](/reference/configuration/auth-config#callbacks) for more information on how to interact with the token. For example, you can add additional information to the token by returning an object from the `jwt()` callback: | ||
* | ||
* ```js | ||
* callbacks: { | ||
* async jwt(token, user, account, profile, isNewUser) { | ||
* if (user) { | ||
* token.id = user.id | ||
* } | ||
* return token | ||
* } | ||
* } | ||
* ``` | ||
* | ||
@@ -82,0 +95,0 @@ * @example |
@@ -18,2 +18,3 @@ | ||
| "bungie" | ||
| "click-up" | ||
| "cognito" | ||
@@ -43,2 +44,3 @@ | "coinbase" | ||
| "mailru" | ||
| "mastodon" | ||
| "mattermost" | ||
@@ -45,0 +47,0 @@ | "medium" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1319235
456
33697