Auto-commit 2026-04-29 16:31

This commit is contained in:
2026-04-29 16:31:27 -04:00
parent e8687bb6b2
commit 0495ee5bd2
19691 changed files with 3272886 additions and 138 deletions

164
node_modules/next-auth/providers/42-school.d.ts generated vendored Normal file
View File

@@ -0,0 +1,164 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface UserData {
id: number;
email: string;
login: string;
first_name: string;
last_name: string;
usual_full_name: null | string;
usual_first_name: null | string;
url: string;
phone: "hidden" | string | null;
displayname: string;
image_url: string | null;
"staff?": boolean;
correction_point: number;
pool_month: string | null;
pool_year: string | null;
location: string | null;
wallet: number;
anonymize_date: string;
created_at: string;
updated_at: string | null;
alumni: boolean;
"is_launched?": boolean;
}
export interface CursusUser {
grade: string | null;
level: number;
skills: Array<{
id: number;
name: string;
level: number;
}>;
blackholed_at: string | null;
id: number;
begin_at: string | null;
end_at: string | null;
cursus_id: number;
has_coalition: boolean;
created_at: string;
updated_at: string | null;
user: UserData;
cursus: {
id: number;
created_at: string;
name: string;
slug: string;
};
}
export interface ProjectUser {
id: number;
occurrence: number;
final_mark: number | null;
status: "in_progress" | "finished";
"validated?": boolean | null;
current_team_id: number;
project: {
id: number;
name: string;
slug: string;
parent_id: number | null;
};
cursus_ids: number[];
marked_at: string | null;
marked: boolean;
retriable_at: string | null;
created_at: string;
updated_at: string | null;
}
export interface Achievement {
id: number;
name: string;
description: string;
tier: "none" | "easy" | "medium" | "hard" | "challenge";
kind: "scolarity" | "project" | "pedagogy" | "scolarity";
visible: boolean;
image: string | null;
nbr_of_success: number | null;
users_url: string;
}
export interface LanguagesUser {
id: number;
language_id: number;
user_id: number;
position: number;
created_at: string;
}
export interface TitlesUser {
id: number;
user_id: number;
title_id: number;
selected: boolean;
created_at: string;
updated_at: string | null;
}
export interface ExpertisesUser {
id: number;
expertise_id: number;
interested: boolean;
value: number;
contact_me: boolean;
created_at: string;
user_id: number;
}
export interface Campus {
id: number;
name: string;
time_zone: string;
language: {
id: number;
name: string;
identifier: string;
created_at: string;
updated_at: string | null;
};
users_count: number;
vogsphere_id: number;
country: string;
address: string;
zip: string;
city: string;
website: string;
facebook: string;
twitter: string;
active: boolean;
email_extension: string;
default_hidden_phone: boolean;
}
export interface CampusUser {
id: number;
user_id: number;
campus_id: number;
is_primary: boolean;
created_at: string;
updated_at: string | null;
}
export interface FortyTwoProfile extends UserData, Record<string, any> {
groups: Array<{
id: string;
name: string;
}>;
cursus_users: CursusUser[];
projects_users: ProjectUser[];
languages_users: LanguagesUser[];
achievements: Achievement[];
titles: Array<{
id: string;
name: string;
}>;
titles_users: TitlesUser[];
partnerships: any[];
patroned: any[];
patroning: any[];
expertises_users: ExpertisesUser[];
roles: Array<{
id: string;
name: string;
}>;
campus: Campus[];
campus_users: CampusUser[];
user: any | null;
}
export default function FortyTwo<P extends FortyTwoProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=42-school.d.ts.map

1
node_modules/next-auth/providers/42-school.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"42-school.d.ts","sourceRoot":"","sources":["../src/providers/42-school.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,IAAI,GAAG,MAAM,CAAA;IAC9B,gBAAgB,EAAE,IAAI,GAAG,MAAM,CAAA;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,OAAO,CAAA;IACjB,gBAAgB,EA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;IACpE,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC3C,YAAY,EAAE,UAAU,EAAE,CAAA;IAC1B,cAAc,EAAE,WAAW,EAAE,CAAA;IAC7B,eAAe,EAAE,aAAa,EAAE,CAAA;IAChC,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC3C,YAAY,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,EAAE,GAAG,EAAE,CAAA;IACnB,QAAQ,EAAE,GAAG,EAAE,CAAA;IACf,SAAS,EAAE,GAAG,EAAE,CAAA;IAChB,gBAAgB,EAAE,cAAc,EAAE,CAAA;IAClC,KAAK,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,EAAE,UAAU,EAAE,CAAA;IAC1B,IAAI,EAAE,GAAG,GAAG,IAAI,CAAA;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,eAAe,EACxD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAqBhB"}

30
node_modules/next-auth/providers/42-school.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = FortyTwo;
function FortyTwo(options) {
return {
id: "42-school",
name: "42 School",
type: "oauth",
authorization: {
url: "https://api.intra.42.fr/oauth/authorize",
params: {
scope: "public"
}
},
token: "https://api.intra.42.fr/oauth/token",
userinfo: "https://api.intra.42.fr/v2/me",
profile(profile) {
return {
id: profile.id.toString(),
name: profile.usual_full_name,
email: profile.email,
image: profile.image_url
};
},
options
};
}

91
node_modules/next-auth/providers/apple.d.ts generated vendored Normal file
View File

@@ -0,0 +1,91 @@
import { OAuthConfig, OAuthUserConfig } from ".";
/**
* See more at:
* [Retrieve the User's Information from Apple ID Servers
](https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/authenticating_users_with_sign_in_with_apple#3383773)
*/
export interface AppleProfile extends Record<string, any> {
/**
* The issuer registered claim identifies the principal that issued the identity token.
* Since Apple generates the token, the value is `https://appleid.apple.com`.
*/
iss: "https://appleid.apple.com";
/**
* The audience registered claim identifies the recipient for which the identity token is intended.
* Since the token is meant for your application, the value is the `client_id` from your developer account.
*/
aud: string;
/**
* The issued at registered claim indicates the time at which Apple issued the identity token,
* in terms of the number of seconds since Epoch, in UTC.
*/
iat: number;
/**
* The expiration time registered identifies the time on or after which the identity token expires,
* in terms of number of seconds since Epoch, in UTC.
* The value must be greater than the current date/time when verifying the token.
*/
exp: number;
/**
* The subject registered claim identifies the principal that's the subject of the identity token.
* Since this token is meant for your application, the value is the unique identifier for the user.
*/
sub: string;
/**
* A String value used to associate a client session and the identity token.
* This value mitigates replay attacks and is present only if passed during the authorization request.
*/
nonce: string;
/**
* A Boolean value that indicates whether the transaction is on a nonce-supported platform.
* If you sent a nonce in the authorization request but don't see the nonce claim in the identity token,
* check this claim to determine how to proceed.
* If this claim returns true, you should treat nonce as mandatory and fail the transaction;
* otherwise, you can proceed treating the nonce as options.
*/
nonce_supported: boolean;
/**
* A String value representing the user's email address.
* The email address is either the user's real email address or the proxy address,
* depending on their status private email relay service.
*/
email: string;
/**
* A String or Boolean value that indicates whether the service has verified the email.
* The value of this claim is always true, because the servers only return verified email addresses.
* The value can either be a String (`"true"`) or a Boolean (`true`).
*/
email_verified: "true" | true;
/**
* A String or Boolean value that indicates whether the email shared by the user is the proxy address.
* The value can either be a String (`"true"` or `"false"`) or a Boolean (`true` or `false`).
*/
is_private_email: boolean | "true" | "false";
/**
* An Integer value that indicates whether the user appears to be a real person.
* Use the value of this claim to mitigate fraud. The possible values are: 0 (or Unsupported), 1 (or Unknown), 2 (or LikelyReal).
* For more information, see [`ASUserDetectionStatus`](https://developer.apple.com/documentation/authenticationservices/asuserdetectionstatus).
* This claim is present only on iOS 14 and later, macOS 11 and later, watchOS 7 and later, tvOS 14 and later;
* the claim isn't present or supported for web-based apps.
*/
real_user_status: 0 | 1 | 2;
/**
* A String value representing the transfer identifier used to migrate users to your team.
* This claim is present only during the 60-day transfer period after an you transfer an app.
* For more information, see [Bringing New Apps and Users into Your Team](https://developer.apple.com/documentation/sign_in_with_apple/bringing_new_apps_and_users_into_your_team).
*/
transfer_sub: string;
at_hash: string;
auth_time: number;
}
export default function Apple<P extends AppleProfile>(options: Omit<OAuthUserConfig<P>, "clientSecret"> & {
/**
* Apple requires the client secret to be a JWT. You can generate one using the following script:
* https://bal.so/apple-gen-secret
*
* Read more: [Creating the Client Secret
](https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048)
*/
clientSecret: string;
}): OAuthConfig<P>;
//# sourceMappingURL=apple.d.ts.map

1
node_modules/next-auth/providers/apple.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"apple.d.ts","sourceRoot":"","sources":["../src/providers/apple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAEhD;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACvD;;;OAGG;IACH,GAAG,EAAE,2BAA2B,CAAA;IAChC;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;;;OAMG;IACH,eAAe,EAAE,OAAO,CAAA;IAExB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;;OAGG;IACH,gBAAgB,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;IAE5C;;;;;;OAMG;IACH,gBAAgB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAE3B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,CAAC,SAAS,YAAY,EAClD,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,GAAG;IAClD;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB,GACA,WAAW,CAAC,CAAC,CAAC,CAsBhB"}

36
node_modules/next-auth/providers/apple.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Apple;
function Apple(options) {
return {
id: "apple",
name: "Apple",
type: "oauth",
wellKnown: "https://appleid.apple.com/.well-known/openid-configuration",
authorization: {
params: {
scope: "name email",
response_mode: "form_post"
}
},
idToken: true,
profile(profile) {
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: null
};
},
checks: ["pkce"],
style: {
logo: "/apple.svg",
text: "#fff",
bg: "#000"
},
options
};
}

10
node_modules/next-auth/providers/atlassian.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
interface AtlassianProfile extends Record<string, any> {
account_id: string;
name: string;
email: string;
picture: string;
}
export default function Atlassian<P extends AtlassianProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
export {};
//# sourceMappingURL=atlassian.d.ts.map

1
node_modules/next-auth/providers/atlassian.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"atlassian.d.ts","sourceRoot":"","sources":["../src/providers/atlassian.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,UAAU,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,SAAS,gBAAgB,EAC1D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAyBhB"}

36
node_modules/next-auth/providers/atlassian.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Atlassian;
function Atlassian(options) {
return {
id: "atlassian",
name: "Atlassian",
type: "oauth",
authorization: {
url: "https://auth.atlassian.com/authorize",
params: {
audience: "api.atlassian.com",
prompt: "consent"
}
},
token: "https://auth.atlassian.com/oauth/token",
userinfo: "https://api.atlassian.com/me",
profile(profile) {
return {
id: profile.account_id,
name: profile.name,
email: profile.email,
image: profile.picture
};
},
style: {
logo: "/atlassian.svg",
bg: "#fff",
text: "#0052cc"
},
options
};
}

9
node_modules/next-auth/providers/auth0.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface Auth0Profile extends Record<string, any> {
sub: string;
nickname: string;
email: string;
picture: string;
}
export default function Auth0<P extends Auth0Profile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=auth0.d.ts.map

1
node_modules/next-auth/providers/auth0.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"auth0.d.ts","sourceRoot":"","sources":["../src/providers/auth0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACvD,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,CAAC,SAAS,YAAY,EAClD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAoBhB"}

35
node_modules/next-auth/providers/auth0.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Auth0;
function Auth0(options) {
return {
id: "auth0",
name: "Auth0",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
type: "oauth",
authorization: {
params: {
scope: "openid email profile"
}
},
checks: ["pkce", "state"],
idToken: true,
profile(profile) {
return {
id: profile.sub,
name: profile.nickname,
email: profile.email,
image: profile.picture
};
},
style: {
logo: "/auth0.svg",
text: "#fff",
bg: "#EB5424"
},
options
};
}

23
node_modules/next-auth/providers/authentik.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface AuthentikProfile extends Record<string, any> {
iss: string;
sub: string;
aud: string;
exp: number;
iat: number;
auth_time: number;
acr: string;
c_hash: string;
nonce: string;
at_hash: string;
email: string;
email_verified: boolean;
name: string;
given_name: string;
family_name: string;
preferred_username: string;
nickname: string;
groups: string[];
}
export default function Authentik<P extends AuthentikProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=authentik.d.ts.map

1
node_modules/next-auth/providers/authentik.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"authentik.d.ts","sourceRoot":"","sources":["../src/providers/authentik.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,OAAO,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,SAAS,gBAAgB,EAC1D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAkBhB"}

30
node_modules/next-auth/providers/authentik.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Authentik;
function Authentik(options) {
return {
id: "authentik",
name: "Authentik",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
type: "oauth",
authorization: {
params: {
scope: "openid email profile"
}
},
checks: ["pkce", "state"],
profile(profile) {
var _profile$name;
return {
id: profile.sub,
name: (_profile$name = profile.name) !== null && _profile$name !== void 0 ? _profile$name : profile.preferred_username,
email: profile.email,
image: profile.picture
};
},
options
};
}

22
node_modules/next-auth/providers/azure-ad-b2c.d.ts generated vendored Normal file
View File

@@ -0,0 +1,22 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface AzureB2CProfile extends Record<string, any> {
exp: number;
nbf: number;
ver: string;
iss: string;
sub: string;
aud: string;
iat: number;
auth_time: number;
oid: string;
country: string;
name: string;
postalCode: string;
emails: string[];
tfp: string;
}
export default function AzureADB2C<P extends AzureB2CProfile>(options: OAuthUserConfig<P> & {
primaryUserFlow?: string;
tenantId?: string;
}): OAuthConfig<P>;
//# sourceMappingURL=azure-ad-b2c.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"azure-ad-b2c.d.ts","sourceRoot":"","sources":["../src/providers/azure-ad-b2c.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,SAAS,eAAe,EAC1D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GACA,WAAW,CAAC,CAAC,CAAC,CAuBhB"}

35
node_modules/next-auth/providers/azure-ad-b2c.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = AzureADB2C;
function AzureADB2C(options) {
var _options$issuer;
const {
tenantId,
primaryUserFlow
} = options;
const issuer = (_options$issuer = options.issuer) !== null && _options$issuer !== void 0 ? _options$issuer : `https://${tenantId}.b2clogin.com/${tenantId}.onmicrosoft.com/${primaryUserFlow}/v2.0`;
return {
id: "azure-ad-b2c",
name: "Azure Active Directory B2C",
type: "oauth",
wellKnown: `${issuer}/.well-known/openid-configuration`,
idToken: true,
profile(profile) {
return {
id: profile.sub,
name: profile.name,
email: profile.emails[0],
image: null
};
},
style: {
logo: "/azure.svg",
text: "#fff",
bg: "#0072c6"
},
options
};
}

17
node_modules/next-auth/providers/azure-ad.d.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface AzureADProfile extends Record<string, any> {
sub: string;
nickname: string;
email: string;
picture: string;
}
export default function AzureAD<P extends AzureADProfile>(options: OAuthUserConfig<P> & {
/**
* https://docs.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0#examples
* @default 48
*/
profilePhotoSize?: 48 | 64 | 96 | 120 | 240 | 360 | 432 | 504 | 648;
/** @default "common" */
tenantId?: string;
}): OAuthConfig<P>;
//# sourceMappingURL=azure-ad.d.ts.map

1
node_modules/next-auth/providers/azure-ad.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"azure-ad.d.ts","sourceRoot":"","sources":["../src/providers/azure-ad.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACzD,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,cAAc,EACtD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG;IAC5B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACnE,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GACA,WAAW,CAAC,CAAC,CAAC,CA0ChB"}

50
node_modules/next-auth/providers/azure-ad.js generated vendored Normal file
View File

@@ -0,0 +1,50 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = AzureAD;
function AzureAD(options) {
var _options$tenantId, _options$profilePhoto;
const tenant = (_options$tenantId = options.tenantId) !== null && _options$tenantId !== void 0 ? _options$tenantId : "common";
const profilePhotoSize = (_options$profilePhoto = options.profilePhotoSize) !== null && _options$profilePhoto !== void 0 ? _options$profilePhoto : 48;
return {
id: "azure-ad",
name: "Azure Active Directory",
type: "oauth",
wellKnown: `https://login.microsoftonline.com/${tenant}/v2.0/.well-known/openid-configuration?appid=${options.clientId}`,
authorization: {
params: {
scope: "openid profile email"
}
},
async profile(profile, tokens) {
var _image;
const response = await fetch(`https://graph.microsoft.com/v1.0/me/photos/${profilePhotoSize}x${profilePhotoSize}/$value`, {
headers: {
Authorization: `Bearer ${tokens.access_token}`
}
});
let image;
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 (_unused) {}
}
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: (_image = image) !== null && _image !== void 0 ? _image : null
};
},
style: {
logo: "/azure.svg",
text: "#fff",
bg: "#0072c6"
},
options
};
}

11
node_modules/next-auth/providers/battlenet.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface BattleNetProfile extends Record<string, any> {
sub: string;
battle_tag: string;
}
/** See the [available regions](https://develop.battle.net/documentation/guides/regionality-and-apis) */
export declare type BattleNetIssuer = "https://www.battlenet.com.cn/oauth" | `https://${"us" | "eu" | "kr" | "tw"}.battle.net/oauth`;
export default function BattleNet<P extends BattleNetProfile>(options: OAuthUserConfig<P> & {
issuer: BattleNetIssuer;
}): OAuthConfig<P>;
//# sourceMappingURL=battlenet.d.ts.map

1
node_modules/next-auth/providers/battlenet.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"battlenet.d.ts","sourceRoot":"","sources":["../src/providers/battlenet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,wGAAwG;AACxG,oBAAY,eAAe,GACvB,oCAAoC,GACpC,WAAW,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,mBAAmB,CAAA;AAE3D,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,SAAS,gBAAgB,EAC1D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,GACxD,WAAW,CAAC,CAAC,CAAC,CAiBhB"}

28
node_modules/next-auth/providers/battlenet.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = BattleNet;
function BattleNet(options) {
return {
id: "battlenet",
name: "Battle.net",
type: "oauth",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
profile(profile) {
return {
id: profile.sub,
name: profile.battle_tag,
email: null,
image: null
};
},
style: {
logo: "/battlenet.svg",
bg: "#148eff",
text: "#fff"
},
options
};
}

3
node_modules/next-auth/providers/box.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
/** @type {import(".").OAuthProvider} */
export default function Box(options: Partial<import("./oauth").OAuthConfig<any>>): import("./oauth").OAuthConfig<any>;
//# sourceMappingURL=box.d.ts.map

1
node_modules/next-auth/providers/box.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../src/providers/box.js"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,sHAuBC"}

30
node_modules/next-auth/providers/box.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Box;
function Box(options) {
return {
id: "box",
name: "Box",
type: "oauth",
authorization: "https://account.box.com/api/oauth2/authorize",
token: "https://api.box.com/oauth2/token",
userinfo: "https://api.box.com/2.0/users/me",
profile(profile) {
return {
id: profile.id,
name: profile.name,
email: profile.login,
image: profile.avatar_url
};
},
style: {
logo: "/box.svg",
bg: "#0075C9",
text: "#fff"
},
options
};
}

9
node_modules/next-auth/providers/boxyhq-saml.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface BoxyHQSAMLProfile extends Record<string, any> {
id: string;
email: string;
firstName?: string;
lastName?: string;
}
export default function SAMLJackson<P extends BoxyHQSAMLProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=boxyhq-saml.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"boxyhq-saml.d.ts","sourceRoot":"","sources":["../src/providers/boxyhq-saml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC5D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,SAAS,iBAAiB,EAC7D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAyBhB"}

32
node_modules/next-auth/providers/boxyhq-saml.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = SAMLJackson;
function SAMLJackson(options) {
return {
id: "boxyhq-saml",
name: "BoxyHQ SAML",
type: "oauth",
version: "2.0",
checks: ["pkce", "state"],
authorization: {
url: `${options.issuer}/api/oauth/authorize`,
params: {
provider: "saml"
}
},
token: `${options.issuer}/api/oauth/token`,
userinfo: `${options.issuer}/api/oauth/userinfo`,
profile(profile) {
return {
id: profile.id,
email: profile.email,
name: [profile.firstName, profile.lastName].filter(Boolean).join(" "),
image: null
};
},
options
};
}

3
node_modules/next-auth/providers/bungie.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
/** @type {import(".").OAuthProvider} */
export default function Bungie(options: Partial<import("./oauth").OAuthConfig<any>>): import("./oauth").OAuthConfig<any>;
//# sourceMappingURL=bungie.d.ts.map

1
node_modules/next-auth/providers/bungie.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"bungie.d.ts","sourceRoot":"","sources":["../src/providers/bungie.js"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,yHAuBC"}

28
node_modules/next-auth/providers/bungie.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Bungie;
function Bungie(options) {
return {
id: "bungie",
name: "Bungie",
type: "oauth",
authorization: "https://www.bungie.net/en/OAuth/Authorize?reauth=true",
token: "https://www.bungie.net/platform/app/oauth/token/",
userinfo: "https://www.bungie.net/platform/User/GetBungieAccount/{membershipId}/254/",
profile(profile) {
const {
bungieNetUser: user
} = profile.Response;
return {
id: user.membershipId,
name: user.displayName,
email: null,
image: `https://www.bungie.net${user.profilePicturePath.startsWith("/") ? "" : "/"}${user.profilePicturePath}`
};
},
options
};
}

9
node_modules/next-auth/providers/cognito.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface CognitoProfile extends Record<string, any> {
sub: string;
name: string;
email: string;
picture: string;
}
export default function Cognito<P extends CognitoProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=cognito.d.ts.map

1
node_modules/next-auth/providers/cognito.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"cognito.d.ts","sourceRoot":"","sources":["../src/providers/cognito.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACzD,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,cAAc,EACtD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAkBhB"}

29
node_modules/next-auth/providers/cognito.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Cognito;
function Cognito(options) {
return {
id: "cognito",
name: "Cognito",
type: "oauth",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
idToken: true,
profile(profile) {
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: profile.picture
};
},
style: {
logo: "/cognito.svg",
bg: "#fff",
text: "#C17B9E"
},
options
};
}

3
node_modules/next-auth/providers/coinbase.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
/** @type {import(".").OAuthProvider} */
export default function Coinbase(options: Partial<import("./oauth").OAuthConfig<any>>): import("./oauth").OAuthConfig<any>;
//# sourceMappingURL=coinbase.d.ts.map

1
node_modules/next-auth/providers/coinbase.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"coinbase.d.ts","sourceRoot":"","sources":["../src/providers/coinbase.js"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,2HAmBC"}

25
node_modules/next-auth/providers/coinbase.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Coinbase;
function Coinbase(options) {
return {
id: "coinbase",
name: "Coinbase",
type: "oauth",
authorization: "https://www.coinbase.com/oauth/authorize?scope=wallet:user:email+wallet:user:read",
token: "https://api.coinbase.com/oauth/token",
userinfo: "https://api.coinbase.com/v2/user",
profile(profile) {
return {
id: profile.data.id,
name: profile.data.name,
email: profile.data.email,
image: profile.data.avatar_url
};
},
options
};
}

20
node_modules/next-auth/providers/credentials.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
import type { RequestInternal } from "../core";
import type { CommonProviderOptions } from ".";
import type { User, Awaitable } from "..";
export interface CredentialInput {
label?: string;
type?: string;
value?: string;
placeholder?: string;
}
export interface CredentialsConfig<C extends Record<string, CredentialInput> = Record<string, CredentialInput>> extends CommonProviderOptions {
type: "credentials";
credentials: C;
authorize: (credentials: Record<keyof C, string> | undefined, req: Pick<RequestInternal, "body" | "query" | "headers" | "method">) => Awaitable<User | null>;
}
export declare type CredentialsProvider = <C extends Record<string, CredentialInput>>(options: Partial<CredentialsConfig<C>>) => CredentialsConfig<C>;
export declare type CredentialsProviderType = "Credentials";
declare type UserCredentialsConfig<C extends Record<string, CredentialInput>> = Partial<Omit<CredentialsConfig<C>, "options">> & Pick<CredentialsConfig<C>, "authorize" | "credentials">;
export default function Credentials<C extends Record<string, CredentialInput> = Record<string, CredentialInput>>(options: UserCredentialsConfig<C>): CredentialsConfig<C>;
export {};
//# sourceMappingURL=credentials.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/providers/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;AAEzC,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,iBAAiB,CAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAC3E,SAAQ,qBAAqB;IAC7B,IAAI,EAAE,aAAa,CAAA;IACnB,WAAW,EAAE,CAAC,CAAA;IACd,SAAS,EAAE,CACT,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,SAAS,EAChD,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC,KAChE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;CAC5B;AAED,oBAAY,mBAAmB,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EAC1E,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,KACnC,iBAAiB,CAAC,CAAC,CAAC,CAAA;AAEzB,oBAAY,uBAAuB,GAAG,aAAa,CAAA;AAEnD,aAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,IAAI,OAAO,CAC7E,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CACtC,GACC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC,CAAA;AAEzD,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EAC3E,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CASzD"}

16
node_modules/next-auth/providers/credentials.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Credentials;
function Credentials(options) {
return {
id: "credentials",
name: "Credentials",
type: "credentials",
credentials: {},
authorize: () => null,
options
};
}

20
node_modules/next-auth/providers/discord.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface DiscordProfile extends Record<string, any> {
accent_color: number;
avatar: string;
banner: string;
banner_color: string;
discriminator: string;
email: string;
flags: number;
id: string;
image_url: string;
locale: string;
mfa_enabled: boolean;
premium_type: number;
public_flags: number;
username: string;
verified: boolean;
}
export default function Discord<P extends DiscordProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=discord.d.ts.map

1
node_modules/next-auth/providers/discord.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"discord.d.ts","sourceRoot":"","sources":["../src/providers/discord.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACzD,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,cAAc,EACtD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CA2BhB"}

37
node_modules/next-auth/providers/discord.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Discord;
function Discord(options) {
return {
id: "discord",
name: "Discord",
type: "oauth",
authorization: "https://discord.com/api/oauth2/authorize?scope=identify+email",
token: "https://discord.com/api/oauth2/token",
userinfo: "https://discord.com/api/users/@me",
profile(profile) {
if (profile.avatar === null) {
const defaultAvatarNumber = parseInt(profile.discriminator) % 5;
profile.image_url = `https://cdn.discordapp.com/embed/avatars/${defaultAvatarNumber}.png`;
} else {
const format = profile.avatar.startsWith("a_") ? "gif" : "png";
profile.image_url = `https://cdn.discordapp.com/avatars/${profile.id}/${profile.avatar}.${format}`;
}
return {
id: profile.id,
name: profile.username,
email: profile.email,
image: profile.image_url
};
},
style: {
logo: "/discord.svg",
bg: "#5865F2",
text: "#fff"
},
options
};
}

32
node_modules/next-auth/providers/dropbox.d.ts generated vendored Normal file
View File

@@ -0,0 +1,32 @@
/**
* @param {import("../core").Provider} options
* @example
*
* ```js
* // pages/api/auth/[...nextauth].js
* import Providers from `next-auth/providers`
* ...
* providers: [
* Providers.Dropbox({
* clientId: process.env.DROPBOX_CLIENT_ID,
* clientSecret: process.env.DROPBOX_CLIENT_SECRET
* })
* ]
* ...
*
* // pages/index
* import { signIn } from "next-auth/react"
* ...
* <button onClick={() => signIn("dropbox")}>
* Sign in
* </button>
* ...
* ```
* *Resources:*
* - [NextAuth.js Documentation](https://next-auth.js.org/providers/dropbox)
* - [Dropbox Documentation](https://developers.dropbox.com/oauth-guide)
* - [Configuration](https://www.dropbox.com/developers/apps)
*/
/** @type {import(".").OAuthProvider} */
export default function Dropbox(options: Partial<import("./oauth").OAuthConfig<any>>): import("./oauth").OAuthConfig<any>;
//# sourceMappingURL=dropbox.d.ts.map

1
node_modules/next-auth/providers/dropbox.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"dropbox.d.ts","sourceRoot":"","sources":["../src/providers/dropbox.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wCAAwC;AACxC,0HAoBC"}

26
node_modules/next-auth/providers/dropbox.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Dropbox;
function Dropbox(options) {
return {
id: "dropbox",
name: "Dropbox",
type: "oauth",
authorization: "https://www.dropbox.com/oauth2/authorize?token_access_type=offline&scope=account_info.read",
token: "https://api.dropboxapi.com/oauth2/token",
userinfo: "https://api.dropboxapi.com/2/users/get_current_account",
profile(profile) {
return {
id: profile.account_id,
name: profile.name.display_name,
email: profile.email,
image: profile.profile_photo_url
};
},
checks: ["state", "pkce"],
options
};
}

View File

@@ -0,0 +1,9 @@
import type { OAuthConfig, OAuthUserConfig } from "./oauth";
export interface DuendeISUser extends Record<string, any> {
email: string;
id: string;
name: string;
verified: boolean;
}
export default function DuendeIdentityServer6<P extends DuendeISUser>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=duende-identity-server6.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"duende-identity-server6.d.ts","sourceRoot":"","sources":["../src/providers/duende-identity-server6.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAClE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAmBhB"}

View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = DuendeIdentityServer6;
function DuendeIdentityServer6(options) {
return {
id: "duende-identityserver6",
name: "DuendeIdentityServer6",
type: "oauth",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
authorization: {
params: {
scope: "openid profile email"
}
},
checks: ["pkce", "state"],
idToken: true,
profile(profile) {
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: null
};
},
options
};
}

85
node_modules/next-auth/providers/email.d.ts generated vendored Normal file
View File

@@ -0,0 +1,85 @@
import { Transport, TransportOptions } from "nodemailer";
import * as JSONTransport from "nodemailer/lib/json-transport/index.js";
import * as SendmailTransport from "nodemailer/lib/sendmail-transport/index.js";
import * as SESTransport from "nodemailer/lib/ses-transport/index.js";
import * as SMTPPool from "nodemailer/lib/smtp-pool/index.js";
import * as SMTPTransport from "nodemailer/lib/smtp-transport/index.js";
import * as StreamTransport from "nodemailer/lib/stream-transport/index.js";
import type { Awaitable } from "..";
import type { CommonProviderOptions } from ".";
import type { Theme } from "../core/types";
declare type AllTransportOptions = string | SMTPTransport | SMTPTransport.Options | SMTPPool | SMTPPool.Options | SendmailTransport | SendmailTransport.Options | StreamTransport | StreamTransport.Options | JSONTransport | JSONTransport.Options | SESTransport | SESTransport.Options | Transport<any> | TransportOptions;
export interface SendVerificationRequestParams {
identifier: string;
url: string;
expires: Date;
provider: EmailConfig;
token: string;
theme: Theme;
}
export interface EmailUserConfig {
server?: AllTransportOptions;
type?: "email";
/** @default "NextAuth <no-reply@example.com>" */
from?: string;
/**
* How long until the e-mail can be used to log the user in,
* in seconds. Defaults to 1 day
* @default 86400
*/
maxAge?: number;
/** [Documentation](https://next-auth.js.org/providers/email#customizing-emails) */
sendVerificationRequest?: (params: SendVerificationRequestParams) => Awaitable<void>;
/**
* By default, we are generating a random verification token.
* You can make it predictable or modify it as you like with this method.
* @example
* ```js
* Providers.Email({
* async generateVerificationToken() {
* return "ABC123"
* }
* })
* ```
* [Documentation](https://next-auth.js.org/providers/email#customizing-the-verification-token)
*/
generateVerificationToken?: () => Awaitable<string>;
/** If defined, it is used to hash the verification token when saving to the database . */
secret?: string;
/**
* Normalizes the user input before sending the verification request.
*
* ⚠️ Always make sure this method returns a single email address.
*
* @note Technically, the part of the email address local mailbox element
* (everything before the `@` symbol) should be treated as 'case sensitive'
* according to RFC 2821, but in practice this causes more problems than
* it solves, e.g.: when looking up users by e-mail from databases.
* By default, we treat email addresses as all lower case,
* but you can override this function to change this behavior.
*
* [Documentation](https://next-auth.js.org/providers/email#normalizing-the-e-mail-address) | [RFC 2821](https://tools.ietf.org/html/rfc2821) | [Email syntax](https://en.wikipedia.org/wiki/Email_address#Syntax)
*/
normalizeIdentifier?: (identifier: string) => string;
}
export interface EmailConfig extends CommonProviderOptions {
id: "email";
type: "email";
name: "Email";
server: AllTransportOptions;
from: string;
maxAge: number;
sendVerificationRequest: (params: SendVerificationRequestParams) => Awaitable<void>;
/**
* This is copied into EmailConfig in parseProviders() don't use elsewhere
*/
options: EmailUserConfig;
secret?: string;
generateVerificationToken?: () => Awaitable<string>;
normalizeIdentifier?: (identifier: string) => string;
}
export declare type EmailProvider = (options: EmailUserConfig) => EmailConfig;
export declare type EmailProviderType = "Email";
export default function Email(options: EmailUserConfig): EmailConfig;
export {};
//# sourceMappingURL=email.d.ts.map

1
node_modules/next-auth/providers/email.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../src/providers/email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAmB,MAAM,YAAY,CAAA;AACzE,OAAO,KAAK,aAAa,MAAM,wCAAwC,CAAA;AACvE,OAAO,KAAK,iBAAiB,MAAM,4CAA4C,CAAA;AAC/E,OAAO,KAAK,YAAY,MAAM,uCAAuC,CAAA;AACrE,OAAO,KAAK,QAAQ,MAAM,mCAAmC,CAAA;AAC7D,OAAO,KAAK,aAAa,MAAM,wCAAwC,CAAA;AACvE,OAAO,KAAK,eAAe,MAAM,0CAA0C,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;AACnC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAA;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAG1C,aAAK,mBAAmB,GACpB,MAAM,GACN,aAAa,GACb,aAAa,CAAC,OAAO,GACrB,QAAQ,GACR,QAAQ,CAAC,OAAO,GAChB,iBAAiB,GACjB,iBAAiB,CAAC,OAAO,GACzB,eAAe,GACf,eAAe,CAAC,OAAO,GACvB,aAAa,GACb,aAAa,CAAC,OAAO,GACrB,YAAY,GACZ,YAAY,CAAC,OAAO,GACpB,SAAS,CAAC,GAAG,CAAC,GACd,gBAAgB,CAAA;AAEpB,MAAM,WAAW,6B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,CAAA;CACrD;AAED,oBAAY,aAAa,GAAG,CAAC,OAAO,EAAE,eAAe,KAAK,WAAW,CAAA;AAIrE,oBAAY,iBAAiB,GAAG,OAAO,CAAA;AAEvC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,EAAE,eAAe,GAAG,WAAW,CA2BnE"}

110
node_modules/next-auth/providers/email.js generated vendored Normal file
View File

@@ -0,0 +1,110 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Email;
var _nodemailer = require("nodemailer");
function Email(options) {
return {
id: "email",
type: "email",
name: "Email",
server: {
host: "localhost",
port: 25,
auth: {
user: "",
pass: ""
}
},
from: "NextAuth <no-reply@example.com>",
maxAge: 24 * 60 * 60,
async sendVerificationRequest(params) {
const {
identifier,
url,
provider,
theme
} = params;
const {
host
} = new URL(url);
const transport = (0, _nodemailer.createTransport)(provider.server);
const result = await transport.sendMail({
to: identifier,
from: provider.from,
subject: `Sign in to ${host}`,
text: text({
url,
host
}),
html: html({
url,
host,
theme
})
});
const failed = result.rejected.concat(result.pending).filter(Boolean);
if (failed.length) {
throw new Error(`Email (${failed.join(", ")}) could not be sent`);
}
},
options
};
}
function html(params) {
const {
url,
host,
theme
} = params;
const escapedHost = host.replace(/\./g, "&#8203;.");
const brandColor = theme.brandColor || "#346df1";
const buttonText = theme.buttonText || "#fff";
const color = {
background: "#f9f9f9",
text: "#444",
mainBackground: "#fff",
buttonBackground: brandColor,
buttonBorder: brandColor,
buttonText
};
return `
<body style="background: ${color.background};">
<table width="100%" border="0" cellspacing="20" cellpadding="0"
style="background: ${color.mainBackground}; max-width: 600px; margin: auto; border-radius: 10px;">
<tr>
<td align="center"
style="padding: 10px 0px; font-size: 22px; font-family: Helvetica, Arial, sans-serif; color: ${color.text};">
Sign in to <strong>${escapedHost}</strong>
</td>
</tr>
<tr>
<td align="center" style="padding: 20px 0;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="border-radius: 5px;" bgcolor="${color.buttonBackground}"><a href="${url}"
target="_blank"
style="font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: ${color.buttonText}; text-decoration: none; border-radius: 5px; padding: 10px 20px; border: 1px solid ${color.buttonBorder}; display: inline-block; font-weight: bold;">Sign
in</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"
style="padding: 0px 0px 10px 0px; font-size: 16px; line-height: 22px; font-family: Helvetica, Arial, sans-serif; color: ${color.text};">
If you did not request this email you can safely ignore it.
</td>
</tr>
</table>
</body>
`;
}
function text({
url,
host
}) {
return `Sign in to ${host}\n${url}\n\n`;
}

12
node_modules/next-auth/providers/eveonline.d.ts generated vendored Normal file
View File

@@ -0,0 +1,12 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface EVEOnlineProfile extends Record<string, any> {
CharacterID: number;
CharacterName: string;
ExpiresOn: string;
Scopes: string;
TokenType: string;
CharacterOwnerHash: string;
IntellectualProperty: string;
}
export default function EVEOnline<P extends EVEOnlineProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=eveonline.d.ts.map

1
node_modules/next-auth/providers/eveonline.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"eveonline.d.ts","sourceRoot":"","sources":["../src/providers/eveonline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,SAAS,gBAAgB,EAC1D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAkBhB"}

25
node_modules/next-auth/providers/eveonline.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = EVEOnline;
function EVEOnline(options) {
return {
id: "eveonline",
name: "EVE Online",
type: "oauth",
authorization: "https://login.eveonline.com/v2/oauth/authorize?scope=publicData",
token: "https://login.eveonline.com/v2/oauth/token",
userinfo: "https://login.eveonline.com/oauth/verify",
profile(profile) {
return {
id: String(profile.CharacterID),
name: profile.CharacterName,
email: null,
image: `https://image.eveonline.com/Character/${profile.CharacterID}_128.jpg`
};
},
options
};
}

14
node_modules/next-auth/providers/facebook.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
interface FacebookPictureData {
url: string;
}
interface FacebookPicture {
data: FacebookPictureData;
}
export interface FacebookProfile extends Record<string, any> {
id: string;
picture: FacebookPicture;
}
export default function Facebook<P extends FacebookProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
export {};
//# sourceMappingURL=facebook.d.ts.map

1
node_modules/next-auth/providers/facebook.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"facebook.d.ts","sourceRoot":"","sources":["../src/providers/facebook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,UAAU,mBAAmB;IAC3B,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,mBAAmB,CAAA;CAC1B;AACD,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,eAAe,CAAA;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,eAAe,EACxD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CA8BhB"}

45
node_modules/next-auth/providers/facebook.js generated vendored Normal file
View File

@@ -0,0 +1,45 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Facebook;
function Facebook(options) {
return {
id: "facebook",
name: "Facebook",
type: "oauth",
authorization: "https://www.facebook.com/v11.0/dialog/oauth?scope=email",
token: "https://graph.facebook.com/oauth/access_token",
userinfo: {
url: "https://graph.facebook.com/me",
params: {
fields: "id,name,email,picture"
},
async request({
tokens,
client,
provider
}) {
var _provider$userinfo;
return await client.userinfo(tokens.access_token, {
params: (_provider$userinfo = provider.userinfo) === null || _provider$userinfo === void 0 ? void 0 : _provider$userinfo.params
});
}
},
profile(profile) {
return {
id: profile.id,
name: profile.name,
email: profile.email,
image: profile.picture.data.url
};
},
style: {
logo: "/facebook.svg",
bg: "#006aff",
text: "#fff"
},
options
};
}

3
node_modules/next-auth/providers/faceit.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
/** @type {import(".").OAuthProvider} */
export default function FACEIT(options: Partial<import("./oauth").OAuthConfig<any>>): import("./oauth").OAuthConfig<any>;
//# sourceMappingURL=faceit.d.ts.map

1
node_modules/next-auth/providers/faceit.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"faceit.d.ts","sourceRoot":"","sources":["../src/providers/faceit.js"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,yHAuBC"}

28
node_modules/next-auth/providers/faceit.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = FACEIT;
function FACEIT(options) {
return {
id: "faceit",
name: "FACEIT",
type: "oauth",
authorization: "https://accounts.faceit.com/accounts?redirect_popup=true",
headers: {
Authorization: `Basic ${Buffer.from(`${options.clientId}:${options.clientSecret}`).toString("base64")}`
},
token: "https://api.faceit.com/auth/v1/oauth/token",
userinfo: "https://api.faceit.com/auth/v1/resources/userinfo",
profile(profile) {
return {
id: profile.guid,
name: profile.name,
email: profile.email,
image: profile.picture
};
},
options
};
}

4
node_modules/next-auth/providers/foursquare.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
/** @type {import("src/providers").OAuthProvider} */
/** @type {import(".").OAuthProvider} */
export default function Foursquare(options: Partial<import("src/providers").OAuthConfig<any>>): import("src/providers").OAuthConfig<any>;
//# sourceMappingURL=foursquare.d.ts.map

1
node_modules/next-auth/providers/foursquare.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"foursquare.d.ts","sourceRoot":"","sources":["../src/providers/foursquare.js"],"names":[],"mappings":"AAGA,oDAAoD;AACpD,wCAAwC;AACxC,yIAsDC"}

63
node_modules/next-auth/providers/foursquare.js generated vendored Normal file
View File

@@ -0,0 +1,63 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Foursquare;
var _https = require("https");
var _events = require("events");
function Foursquare(options) {
const {
apiVersion = "20230131"
} = options;
return {
id: "foursquare",
name: "Foursquare",
type: "oauth",
authorization: "https://foursquare.com/oauth2/authenticate",
token: "https://foursquare.com/oauth2/access_token",
userinfo: {
async request({
tokens
}) {
const url = new URL("https://api.foursquare.com/v2/users/self");
url.searchParams.append("v", apiVersion);
url.searchParams.append("oauth_token", tokens.access_token);
const req = (0, _https.get)(url, {
timeout: 3500
});
const [response] = await Promise.race([(0, _events.once)(req, "response"), (0, _events.once)(req, "timeout")]);
if (!response) {
req.destroy();
throw new Error("HTTP Request Timed Out");
}
if (response.statusCode !== 200) {
throw new Error("Expected 200 OK from the userinfo endpoint");
}
const parts = [];
for await (const part of response) {
parts.push(part);
}
return JSON.parse(Buffer.concat(parts));
}
},
profile({
response: {
user: profile
}
}) {
return {
id: profile.id,
name: `${profile.firstName} ${profile.lastName}`,
email: profile.contact.email,
image: profile.photo ? `${profile.photo.prefix}original${profile.photo.suffix}` : null
};
},
style: {
logo: "/foursquare.svg",
text: "#fff",
bg: "#000"
},
options
};
}

3
node_modules/next-auth/providers/freshbooks.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
/** @type {import(".").OAuthProvider} */
export default function Freshbooks(options: Partial<import("./oauth").OAuthConfig<any>>): import("./oauth").OAuthConfig<any>;
//# sourceMappingURL=freshbooks.d.ts.map

1
node_modules/next-auth/providers/freshbooks.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"freshbooks.d.ts","sourceRoot":"","sources":["../src/providers/freshbooks.js"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,6HAyBC"}

33
node_modules/next-auth/providers/freshbooks.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Freshbooks;
function Freshbooks(options) {
return {
id: "freshbooks",
name: "Freshbooks",
type: "oauth",
version: "2.0",
params: {
grant_type: "authorization_code"
},
accessTokenUrl: "https://api.freshbooks.com/auth/oauth/token",
authorizationUrl: "https://auth.freshbooks.com/service/auth/oauth/authorize?response_type=code",
profileUrl: "https://api.freshbooks.com/auth/api/v1/users/me",
async profile(profile) {
return {
id: profile.response.id,
name: `${profile.response.first_name} ${profile.response.last_name}`,
email: profile.response.email
};
},
style: {
logo: "/freshbooks.svg",
text: "#fff",
bg: "#0075dd"
},
...options
};
}

24
node_modules/next-auth/providers/fusionauth.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
import { OAuthConfig, OAuthUserConfig } from "./oauth";
/** This is the default openid signature returned from FusionAuth
* it can be customized using [lambda functions](https://fusionauth.io/docs/v1/tech/lambdas)
*/
export interface FusionAuthProfile extends Record<string, any> {
aud: string;
exp: number;
iat: number;
iss: string;
sub: string;
jti: string;
authenticationType: string;
email: string;
email_verified: boolean;
preferred_username: string;
at_hash: string;
c_hash: string;
scope: string;
sid: string;
}
export default function FusionAuth<P extends FusionAuthProfile>(options: OAuthUserConfig<P> & {
tenantId?: string;
}): OAuthConfig<P>;
//# sourceMappingURL=fusionauth.d.ts.map

1
node_modules/next-auth/providers/fusionauth.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"fusionauth.d.ts","sourceRoot":"","sources":["../src/providers/fusionauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEtD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC5D,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,OAAO,CAAA;IACvB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,SAAS,iBAAiB,EAE5D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAClD,WAAW,CAAC,CAAC,CAAC,CAwBhB"}

31
node_modules/next-auth/providers/fusionauth.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = FusionAuth;
function FusionAuth(options) {
return {
id: "fusionauth",
name: "FusionAuth",
type: "oauth",
wellKnown: options !== null && options !== void 0 && options.tenantId ? `${options.issuer}/.well-known/openid-configuration?tenantId=${options.tenantId}` : `${options.issuer}/.well-known/openid-configuration`,
authorization: {
params: {
scope: "openid offline_access",
...((options === null || options === void 0 ? void 0 : options.tenantId) && {
tenantId: options.tenantId
})
}
},
checks: ["pkce", "state"],
profile(profile) {
return {
id: profile.sub,
email: profile.email,
name: profile === null || profile === void 0 ? void 0 : profile.preferred_username
};
},
options
};
}

57
node_modules/next-auth/providers/github.d.ts generated vendored Normal file
View File

@@ -0,0 +1,57 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
/** @see https://docs.github.com/en/rest/users/users#get-the-authenticated-user */
export interface GithubProfile extends Record<string, any> {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string | null;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
name: string | null;
company: string | null;
blog: string | null;
location: string | null;
email: string | null;
hireable: boolean | null;
bio: string | null;
twitter_username?: string | null;
public_repos: number;
public_gists: number;
followers: number;
following: number;
created_at: string;
updated_at: string;
private_gists?: number;
total_private_repos?: number;
owned_private_repos?: number;
disk_usage?: number;
suspended_at?: string | null;
collaborators?: number;
two_factor_authentication: boolean;
plan?: {
collaborators: number;
name: string;
space: number;
private_repos: number;
};
}
export interface GithubEmail extends Record<string, any> {
email: string;
primary: boolean;
verified: boolean;
visibility: "public" | "private";
}
export default function Github<P extends GithubProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=github.d.ts.map

1
node_modules/next-auth/providers/github.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../src/providers/github.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,kFAAkF;AAClF,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACxD,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,E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,IAAI,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yBAAyB,EAAE,OAAO,CAAA;IAClC,IAAI,CAAC,EAAE;QACL,aAAa,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;CACF;AAED,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,QAAQ,GAAG,SAAS,CAAA;CACjC;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,CAAC,SAAS,aAAa,EACpD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CA4ChB"}

58
node_modules/next-auth/providers/github.js generated vendored Normal file
View File

@@ -0,0 +1,58 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Github;
function Github(options) {
return {
id: "github",
name: "GitHub",
type: "oauth",
issuer: `https://github.com/login/oauth`,
authorization: {
url: "https://github.com/login/oauth/authorize",
params: {
scope: "read:user user:email"
}
},
token: "https://github.com/login/oauth/access_token",
userinfo: {
url: "https://api.github.com/user",
async request({
client,
tokens
}) {
const profile = await client.userinfo(tokens.access_token);
if (!profile.email) {
const res = await fetch("https://api.github.com/user/emails", {
headers: {
Authorization: `token ${tokens.access_token}`
}
});
if (res.ok) {
var _emails$find;
const emails = await res.json();
profile.email = ((_emails$find = emails.find(e => e.primary)) !== null && _emails$find !== void 0 ? _emails$find : emails[0]).email;
}
}
return profile;
}
},
profile(profile) {
var _profile$name;
return {
id: profile.id.toString(),
name: (_profile$name = profile.name) !== null && _profile$name !== void 0 ? _profile$name : profile.login,
email: profile.email,
image: profile.avatar_url
};
},
style: {
logo: "/github.svg",
bg: "#24292f",
text: "#fff"
},
options
};
}

47
node_modules/next-auth/providers/gitlab.d.ts generated vendored Normal file
View File

@@ -0,0 +1,47 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface GitLabProfile extends Record<string, any> {
id: number;
username: string;
email: string;
name: string;
state: string;
avatar_url: string;
web_url: string;
created_at: string;
bio: string;
location?: string;
public_email: string;
skype: string;
linkedin: string;
twitter: string;
website_url: string;
organization: string;
job_title: string;
pronouns: string;
bot: boolean;
work_information?: string;
followers: number;
following: number;
local_time: string;
last_sign_in_at: string;
confirmed_at: string;
theme_id: number;
last_activity_on: string;
color_scheme_id: number;
projects_limit: number;
current_sign_in_at: string;
identities: Array<{
provider: string;
extern_uid: string;
}>;
can_create_group: boolean;
can_create_project: boolean;
two_factor_enabled: boolean;
external: boolean;
private_profile: boolean;
commit_email: string;
shared_runners_minutes_limit: number;
extra_shared_runners_minutes_limit: number;
}
export default function GitLab<P extends GitLabProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=gitlab.d.ts.map

1
node_modules/next-auth/providers/gitlab.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"gitlab.d.ts","sourceRoot":"","sources":["../src/providers/gitlab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACxD,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,OAAO,CAAA;IACZ,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,KAAK,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,UAAU,EAAE,MAAM,CAAA;KACnB,CAAC,CAAA;IACF,gBAAgB,EAAE,OAAO,CAAA;IACzB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,eAAe,EAAE,OAAO,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,4BAA4B,EAAE,MAAM,CAAA;IACpC,kCAAkC,EAAE,MAAM,CAAA;CAC3C;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,CAAC,SAAS,aAAa,EACpD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAuBhB"}

37
node_modules/next-auth/providers/gitlab.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = GitLab;
function GitLab(options) {
return {
id: "gitlab",
name: "GitLab",
type: "oauth",
authorization: {
url: "https://gitlab.com/oauth/authorize",
params: {
scope: "read_user"
}
},
token: "https://gitlab.com/oauth/token",
userinfo: "https://gitlab.com/api/v4/user",
checks: ["pkce", "state"],
profile(profile) {
var _profile$name;
return {
id: profile.id.toString(),
name: (_profile$name = profile.name) !== null && _profile$name !== void 0 ? _profile$name : profile.username,
email: profile.email,
image: profile.avatar_url
};
},
style: {
logo: "/gitlab.svg",
bg: "#FC6D26",
text: "#fff"
},
options
};
}

20
node_modules/next-auth/providers/google.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface GoogleProfile extends Record<string, any> {
aud: string;
azp: string;
email: string;
email_verified: boolean;
exp: number;
family_name: string;
given_name: string;
hd: string;
iat: number;
iss: string;
jti: string;
name: string;
nbf: number;
picture: string;
sub: string;
}
export default function Google<P extends GoogleProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=google.d.ts.map

1
node_modules/next-auth/providers/google.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../src/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACxD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,OAAO,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,CAAC,SAAS,aAAa,EACpD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAoBhB"}

35
node_modules/next-auth/providers/google.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Google;
function Google(options) {
return {
id: "google",
name: "Google",
type: "oauth",
wellKnown: "https://accounts.google.com/.well-known/openid-configuration",
authorization: {
params: {
scope: "openid email profile"
}
},
idToken: true,
checks: ["pkce", "state"],
profile(profile) {
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: profile.picture
};
},
style: {
logo: "/google.svg",
bg: "#fff",
text: "#000"
},
options
};
}

10
node_modules/next-auth/providers/hubspot.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
interface HubSpotProfile extends Record<string, any> {
user: string;
user_id: string;
hub_domain: string;
hub_id: string;
}
export default function HubSpot<P extends HubSpotProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
export {};
//# sourceMappingURL=hubspot.d.ts.map

1
node_modules/next-auth/providers/hubspot.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"hubspot.d.ts","sourceRoot":"","sources":["../src/providers/hubspot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,UAAU,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAIlD,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IAEf,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACf;AAQD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,cAAc,EACtD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAgDhB"}

57
node_modules/next-auth/providers/hubspot.js generated vendored Normal file
View File

@@ -0,0 +1,57 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = HubSpot;
const HubSpotConfig = {
authorizationUrl: "https://app.hubspot.com/oauth/authorize",
tokenUrl: "https://api.hubapi.com/oauth/v1/token",
profileUrl: "https://api.hubapi.com/oauth/v1/access-tokens"
};
function HubSpot(options) {
return {
id: "hubspot",
name: "HubSpot",
type: "oauth",
...HubSpotConfig,
authorization: {
url: HubSpotConfig.authorizationUrl,
params: {
scope: "oauth",
client_id: options.clientId
}
},
client: {
token_endpoint_auth_method: "client_secret_post"
},
token: HubSpotConfig.tokenUrl,
userinfo: {
url: HubSpotConfig.profileUrl,
async request(context) {
const url = `${HubSpotConfig.profileUrl}/${context.tokens.access_token}`;
const response = await fetch(url, {
headers: {
"Content-Type": "application/json"
},
method: "GET"
});
return await response.json();
}
},
profile(profile) {
return {
id: profile.user_id,
name: profile.user,
email: profile.user,
image: null
};
},
style: {
logo: "/hubspot.svg",
bg: "#ff7a59",
text: "#fff"
},
options
};
}

View File

@@ -0,0 +1,3 @@
/** @type {import(".").OAuthProvider} */
export default function IdentityServer4(options: Partial<import("./oauth").OAuthConfig<any>>): import("./oauth").OAuthConfig<any>;
//# sourceMappingURL=identity-server4.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"identity-server4.d.ts","sourceRoot":"","sources":["../src/providers/identity-server4.js"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,kIAmBC"}

30
node_modules/next-auth/providers/identity-server4.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = IdentityServer4;
function IdentityServer4(options) {
return {
id: "identity-server4",
name: "IdentityServer4",
type: "oauth",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
authorization: {
params: {
scope: "openid profile email"
}
},
checks: ["pkce", "state"],
idToken: true,
profile(profile) {
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: null
};
},
options
};
}

23
node_modules/next-auth/providers/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import type { OAuthConfig, OAuthProvider, OAuthProviderType } from "./oauth";
import type { EmailConfig, EmailProvider, EmailProviderType } from "./email";
import type { CredentialsConfig, CredentialsProvider, CredentialsProviderType } from "./credentials";
export * from "./oauth";
export * from "./email";
export * from "./credentials";
export declare type ProviderType = "oauth" | "email" | "credentials";
export interface CommonProviderOptions {
id: string;
name: string;
type: ProviderType;
options?: any;
}
export declare type Provider = OAuthConfig<any> | EmailConfig | CredentialsConfig;
export declare type BuiltInProviders = Record<OAuthProviderType, OAuthProvider> & Record<CredentialsProviderType, CredentialsProvider> & Record<EmailProviderType, EmailProvider>;
export declare type AppProviders = Array<Provider | ReturnType<BuiltInProviders[keyof BuiltInProviders]>>;
export interface AppProvider extends CommonProviderOptions {
signinUrl: string;
callbackUrl: string;
}
export declare type RedirectableProviderType = "email" | "credentials";
export declare type BuiltInProviderType = RedirectableProviderType | OAuthProviderType;
//# sourceMappingURL=index.d.ts.map

1
node_modules/next-auth/providers/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE5E,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE5E,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,eAAe,CAAA;AAEtB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAE7B,oBAAY,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAA;AAE5D,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE,GAAG,CAAA;CACd;AAED,oBAAY,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,WAAW,GAAG,iBAAiB,CAAA;AAEzE,oBAAY,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,EAAE,aAAa,CAAC,GACrE,MAAM,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,GACpD,MAAM,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAA;AAE1C,oBAAY,YAAY,GAAG,KAAK,CAC9B,QAAQ,GAAG,UAAU,CAAC,gBAAgB,CAAC,MAAM,gBAAgB,CAAC,CAAC,CAChE,CAAA;AAED,MAAM,WAAW,WAAY,SAAQ,qBAAqB;IACxD,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,oBAAY,wBAAwB,GAAG,OAAO,GAAG,aAAa,CAAA;AAE9D,oBAAY,mBAAmB,GAAG,wBAAwB,GAAG,iBAAiB,CAAA"}

38
node_modules/next-auth/providers/index.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _oauth = require("./oauth");
Object.keys(_oauth).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _oauth[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _oauth[key];
}
});
});
var _email = require("./email");
Object.keys(_email).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _email[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _email[key];
}
});
});
var _credentials = require("./credentials");
Object.keys(_credentials).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _credentials[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _credentials[key];
}
});
});

29
node_modules/next-auth/providers/instagram.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
/**
* @type {import("src/providers").OAuthProvider} options
* @example
*
* ```js
* // pages/api/auth/[...nextauth].js
* import Providers from `next-auth/providers`
* ...
* providers: [
* Providers.Instagram({
* clientId: process.env.INSTAGRAM_CLIENT_ID,
* clientSecret: process.env.INSTAGRAM_CLIENT_SECRET
* })
* ]
* ...
*
* // pages/index
* import { signIn } from "next-auth/react"
* ...
* <button onClick={() => signIn("instagram")}>
* Sign in
* </button>
* ...
* ```
* [NextAuth.js Documentation](https://next-auth.js.org/providers/instagram) | [Instagram Documentation](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started) | [Configuration](https://developers.facebook.com/apps)
*/
/** @type {import(".").OAuthProvider} */
export default function Instagram(options: Partial<import("src/providers").OAuthConfig<any>>): import("src/providers").OAuthConfig<any>;
//# sourceMappingURL=instagram.d.ts.map

1
node_modules/next-auth/providers/instagram.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"instagram.d.ts","sourceRoot":"","sources":["../src/providers/instagram.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wCAAwC;AACxC,wIA4BC"}

33
node_modules/next-auth/providers/instagram.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Instagram;
function Instagram(options) {
return {
id: "instagram",
name: "Instagram",
type: "oauth",
authorization: "https://api.instagram.com/oauth/authorize?scope=user_profile",
token: "https://api.instagram.com/oauth/access_token",
userinfo: "https://graph.instagram.com/me?fields=id,username,account_type,name",
client: {
token_endpoint_auth_method: "client_secret_post"
},
async profile(profile) {
return {
id: profile.id,
name: profile.username,
email: null,
image: null
};
},
style: {
logo: "/instagram.svg",
bg: "#fff",
text: "#000"
},
options
};
}

56
node_modules/next-auth/providers/kakao.d.ts generated vendored Normal file
View File

@@ -0,0 +1,56 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export declare type DateTime = string;
export declare type Gender = "female" | "male";
export declare type AgeRange = "1-9" | "10-14" | "15-19" | "20-29" | "30-39" | "40-49" | "50-59" | "60-69" | "70-79" | "80-89" | "90-";
/**
* https://developers.kakao.com/docs/latest/ko/kakaologin/rest-api#req-user-info
* type from : https://gist.github.com/ziponia/cdce1ebd88f979b2a6f3f53416b56a77
*/
export interface KakaoProfile extends Record<string, any> {
id: number;
has_signed_up?: boolean;
connected_at?: DateTime;
synched_at?: DateTime;
properties?: {
id?: string;
status?: string;
registered_at?: DateTime;
msg_blocked?: boolean;
nickname?: string;
profile_image?: string;
thumbnail_image?: string;
};
kakao_account?: {
profile_needs_agreement?: boolean;
profile_nickname_needs_agreement?: boolean;
profile_image_needs_agreement?: boolean;
profile?: {
nickname?: string;
thumbnail_image_url?: string;
profile_image_url?: string;
is_default_image?: boolean;
};
name_needs_agreement?: boolean;
name?: string;
email_needs_agreement?: boolean;
is_email_valid?: boolean;
is_email_verified?: boolean;
email?: string;
age_range_needs_agreement?: boolean;
age_range?: AgeRange;
birthyear_needs_agreement?: boolean;
birthyear?: string;
birthday_needs_agreement?: boolean;
birthday?: string;
birthday_type?: string;
gender_needs_agreement?: boolean;
gender?: Gender;
phone_number_needs_agreement?: boolean;
phone_number?: string;
ci_needs_agreement?: boolean;
ci?: string;
ci_authenticated_at?: DateTime;
};
}
export default function Kakao<P extends KakaoProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=kakao.d.ts.map

1
node_modules/next-auth/providers/kakao.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"kakao.d.ts","sourceRoot":"","sources":["../src/providers/kakao.ts"],"names":[],"mappings":"AAAA,OAAO,KAA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AA;QAC/B,cAAc,CAAC,EAAE,OAAO,CAAA;QACxB,iBAAiB,CAAC,EAAE,OAAO,CAAA;QAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,yBAAyB,CAAC,EAAE,OAAO,CAAA;QACnC,SAAS,CAAC,EAAE,QAAQ,CAAA;QACpB,yBAAyB,CAAC,EAAE,OAAO,CAAA;QACnC,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,wBAAwB,CAAC,EAAE,OAAO,CAAA;QAClC,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,sBAAsB,CAAC,EAAE,OAAO,CAAA;QAChC,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,4BAA4B,CAAC,EAAE,OAAO,CAAA;QACtC,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,mBAAmB,CAAC,EAAE,QAAQ,CAAA;KAC/B,CAAA;CACF;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,CAAC,SAAS,YAAY,EAClD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAqBhB"}

29
node_modules/next-auth/providers/kakao.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Kakao;
function Kakao(options) {
return {
id: "kakao",
name: "Kakao",
type: "oauth",
authorization: "https://kauth.kakao.com/oauth/authorize?scope",
token: "https://kauth.kakao.com/oauth/token",
userinfo: "https://kapi.kakao.com/v2/user/me",
client: {
token_endpoint_auth_method: "client_secret_post"
},
profile(profile) {
var _profile$kakao_accoun, _profile$kakao_accoun2, _profile$kakao_accoun3;
return {
id: String(profile.id),
name: (_profile$kakao_accoun = profile.kakao_account) === null || _profile$kakao_accoun === void 0 || (_profile$kakao_accoun = _profile$kakao_accoun.profile) === null || _profile$kakao_accoun === void 0 ? void 0 : _profile$kakao_accoun.nickname,
email: (_profile$kakao_accoun2 = profile.kakao_account) === null || _profile$kakao_accoun2 === void 0 ? void 0 : _profile$kakao_accoun2.email,
image: (_profile$kakao_accoun3 = profile.kakao_account) === null || _profile$kakao_accoun3 === void 0 || (_profile$kakao_accoun3 = _profile$kakao_accoun3.profile) === null || _profile$kakao_accoun3 === void 0 ? void 0 : _profile$kakao_accoun3.profile_image_url
};
},
options
};
}

26
node_modules/next-auth/providers/keycloak.d.ts generated vendored Normal file
View File

@@ -0,0 +1,26 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface KeycloakProfile extends Record<string, any> {
exp: number;
iat: number;
auth_time: number;
jti: string;
iss: string;
aud: string;
sub: string;
typ: string;
azp: string;
session_state: string;
at_hash: string;
acr: string;
sid: string;
email_verified: boolean;
name: string;
preferred_username: string;
given_name: string;
family_name: string;
email: string;
picture: string;
user: any;
}
export default function Keycloak<P extends KeycloakProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=keycloak.d.ts.map

1
node_modules/next-auth/providers/keycloak.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"keycloak.d.ts","sourceRoot":"","sources":["../src/providers/keycloak.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAErD,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,cAAc,EAAE,OAAO,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,GAAG,CAAA;CACV;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,eAAe,EACxD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,WAAW,CAAC,CAAC,CAAC,CAoBhB"}

36
node_modules/next-auth/providers/keycloak.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Keycloak;
function Keycloak(options) {
return {
id: "keycloak",
name: "Keycloak",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
type: "oauth",
authorization: {
params: {
scope: "openid email profile"
}
},
checks: ["pkce", "state"],
idToken: true,
profile(profile) {
var _profile$name;
return {
id: profile.sub,
name: (_profile$name = profile.name) !== null && _profile$name !== void 0 ? _profile$name : profile.preferred_username,
email: profile.email,
image: profile.picture
};
},
style: {
logo: "/keycloak.svg",
bg: "#fff",
text: "#000"
},
options
};
}

14
node_modules/next-auth/providers/line.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import type { OAuthConfig, OAuthUserConfig } from ".";
export interface LineProfile extends Record<string, any> {
iss: string;
sub: string;
aud: string;
exp: number;
iat: number;
amr: string[];
name: string;
picture: string;
user: any;
}
export default function LINE<P extends LineProfile>(options: OAuthUserConfig<P>): OAuthConfig<P>;
//# sourceMappingURL=line.d.ts.map

Some files were not shown because too many files have changed in this diff Show More