@better-auth/core 1.5.6 → 1.6.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.mts +42 -13
- package/dist/api/index.mjs +0 -4
- package/dist/async_hooks/index.d.mts +1 -2
- package/dist/async_hooks/index.mjs +0 -2
- package/dist/async_hooks/pure.index.d.mts +1 -2
- package/dist/async_hooks/pure.index.mjs +0 -2
- package/dist/context/endpoint-context.d.mts +2 -3
- package/dist/context/endpoint-context.mjs +0 -3
- package/dist/context/global.d.mts +1 -2
- package/dist/context/global.mjs +1 -3
- package/dist/context/index.mjs +1 -2
- package/dist/context/request-state.d.mts +1 -2
- package/dist/context/request-state.mjs +0 -3
- package/dist/context/transaction.d.mts +1 -2
- package/dist/context/transaction.mjs +0 -3
- package/dist/db/adapter/factory.d.mts +1 -2
- package/dist/db/adapter/factory.mjs +3 -7
- package/dist/db/adapter/get-default-field-name.d.mts +1 -2
- package/dist/db/adapter/get-default-field-name.mjs +0 -3
- package/dist/db/adapter/get-default-model-name.d.mts +1 -2
- package/dist/db/adapter/get-default-model-name.mjs +0 -3
- package/dist/db/adapter/get-field-attributes.d.mts +1 -2
- package/dist/db/adapter/get-field-attributes.mjs +0 -3
- package/dist/db/adapter/get-field-name.d.mts +1 -2
- package/dist/db/adapter/get-field-name.mjs +0 -3
- package/dist/db/adapter/get-id-field.d.mts +1 -2
- package/dist/db/adapter/get-id-field.mjs +0 -4
- package/dist/db/adapter/get-model-name.d.mts +1 -2
- package/dist/db/adapter/get-model-name.mjs +0 -3
- package/dist/db/adapter/index.d.mts +9 -2
- package/dist/db/adapter/index.mjs +0 -3
- package/dist/db/adapter/types.d.mts +1 -2
- package/dist/db/adapter/utils.d.mts +1 -2
- package/dist/db/adapter/utils.mjs +0 -2
- package/dist/db/get-tables.d.mts +1 -2
- package/dist/db/get-tables.mjs +0 -2
- package/dist/db/index.mjs +1 -2
- package/dist/db/plugin.d.mts +1 -2
- package/dist/db/schema/account.d.mts +1 -2
- package/dist/db/schema/account.mjs +0 -3
- package/dist/db/schema/rate-limit.d.mts +1 -2
- package/dist/db/schema/rate-limit.mjs +0 -3
- package/dist/db/schema/session.d.mts +1 -2
- package/dist/db/schema/session.mjs +0 -3
- package/dist/db/schema/shared.d.mts +1 -2
- package/dist/db/schema/shared.mjs +0 -3
- package/dist/db/schema/user.d.mts +1 -2
- package/dist/db/schema/user.mjs +0 -3
- package/dist/db/schema/verification.d.mts +1 -2
- package/dist/db/schema/verification.mjs +0 -3
- package/dist/db/type.d.mts +1 -2
- package/dist/env/color-depth.d.mts +1 -2
- package/dist/env/color-depth.mjs +0 -3
- package/dist/env/env-impl.d.mts +1 -2
- package/dist/env/env-impl.mjs +0 -2
- package/dist/env/index.mjs +1 -2
- package/dist/env/logger.d.mts +1 -2
- package/dist/env/logger.mjs +0 -3
- package/dist/error/codes.d.mts +1 -2
- package/dist/error/codes.mjs +0 -3
- package/dist/error/index.d.mts +1 -2
- package/dist/error/index.mjs +0 -3
- package/dist/index.mjs +1 -1
- package/dist/instrumentation/attributes.d.mts +1 -2
- package/dist/instrumentation/attributes.mjs +0 -3
- package/dist/instrumentation/index.mjs +1 -2
- package/dist/instrumentation/tracer.d.mts +1 -2
- package/dist/instrumentation/tracer.mjs +29 -16
- package/dist/oauth2/client-credentials-token.d.mts +1 -2
- package/dist/oauth2/client-credentials-token.mjs +0 -3
- package/dist/oauth2/create-authorization-url.d.mts +1 -2
- package/dist/oauth2/create-authorization-url.mjs +0 -3
- package/dist/oauth2/index.mjs +1 -2
- package/dist/oauth2/oauth-provider.d.mts +1 -2
- package/dist/oauth2/refresh-access-token.d.mts +1 -2
- package/dist/oauth2/refresh-access-token.mjs +0 -3
- package/dist/oauth2/utils.d.mts +1 -2
- package/dist/oauth2/utils.mjs +0 -3
- package/dist/oauth2/validate-authorization-code.d.mts +1 -2
- package/dist/oauth2/validate-authorization-code.mjs +0 -4
- package/dist/oauth2/verify.d.mts +1 -2
- package/dist/oauth2/verify.mjs +0 -4
- package/dist/social-providers/apple.d.mts +1 -2
- package/dist/social-providers/apple.mjs +0 -4
- package/dist/social-providers/atlassian.d.mts +1 -2
- package/dist/social-providers/atlassian.mjs +0 -5
- package/dist/social-providers/cognito.d.mts +1 -2
- package/dist/social-providers/cognito.mjs +0 -5
- package/dist/social-providers/discord.d.mts +1 -2
- package/dist/social-providers/discord.mjs +0 -4
- package/dist/social-providers/dropbox.d.mts +1 -2
- package/dist/social-providers/dropbox.mjs +0 -4
- package/dist/social-providers/facebook.d.mts +1 -2
- package/dist/social-providers/facebook.mjs +0 -4
- package/dist/social-providers/figma.d.mts +1 -2
- package/dist/social-providers/figma.mjs +0 -5
- package/dist/social-providers/github.d.mts +1 -2
- package/dist/social-providers/github.mjs +0 -5
- package/dist/social-providers/gitlab.d.mts +1 -2
- package/dist/social-providers/gitlab.mjs +0 -4
- package/dist/social-providers/google.d.mts +1 -2
- package/dist/social-providers/google.mjs +0 -5
- package/dist/social-providers/huggingface.d.mts +1 -2
- package/dist/social-providers/huggingface.mjs +0 -4
- package/dist/social-providers/index.d.mts +1 -2
- package/dist/social-providers/index.mjs +0 -3
- package/dist/social-providers/kakao.d.mts +1 -2
- package/dist/social-providers/kakao.mjs +0 -4
- package/dist/social-providers/kick.d.mts +1 -2
- package/dist/social-providers/kick.mjs +0 -4
- package/dist/social-providers/line.d.mts +1 -2
- package/dist/social-providers/line.mjs +0 -4
- package/dist/social-providers/linear.d.mts +1 -2
- package/dist/social-providers/linear.mjs +0 -4
- package/dist/social-providers/linkedin.d.mts +1 -2
- package/dist/social-providers/linkedin.mjs +0 -4
- package/dist/social-providers/microsoft-entra-id.d.mts +1 -2
- package/dist/social-providers/microsoft-entra-id.mjs +0 -5
- package/dist/social-providers/naver.d.mts +1 -2
- package/dist/social-providers/naver.mjs +0 -4
- package/dist/social-providers/notion.d.mts +1 -2
- package/dist/social-providers/notion.mjs +0 -4
- package/dist/social-providers/paybin.d.mts +1 -2
- package/dist/social-providers/paybin.mjs +0 -5
- package/dist/social-providers/paypal.d.mts +1 -2
- package/dist/social-providers/paypal.mjs +0 -5
- package/dist/social-providers/polar.d.mts +1 -2
- package/dist/social-providers/polar.mjs +0 -4
- package/dist/social-providers/railway.d.mts +1 -2
- package/dist/social-providers/railway.mjs +0 -4
- package/dist/social-providers/reddit.d.mts +1 -2
- package/dist/social-providers/reddit.mjs +0 -4
- package/dist/social-providers/roblox.d.mts +1 -2
- package/dist/social-providers/roblox.mjs +0 -4
- package/dist/social-providers/salesforce.d.mts +1 -2
- package/dist/social-providers/salesforce.mjs +0 -5
- package/dist/social-providers/slack.d.mts +1 -2
- package/dist/social-providers/slack.mjs +0 -4
- package/dist/social-providers/spotify.d.mts +1 -2
- package/dist/social-providers/spotify.mjs +0 -4
- package/dist/social-providers/tiktok.d.mts +1 -2
- package/dist/social-providers/tiktok.mjs +0 -4
- package/dist/social-providers/twitch.d.mts +1 -2
- package/dist/social-providers/twitch.mjs +0 -5
- package/dist/social-providers/twitter.d.mts +1 -2
- package/dist/social-providers/twitter.mjs +0 -4
- package/dist/social-providers/vercel.d.mts +1 -2
- package/dist/social-providers/vercel.mjs +0 -4
- package/dist/social-providers/vk.d.mts +1 -2
- package/dist/social-providers/vk.mjs +0 -4
- package/dist/social-providers/wechat.d.mts +1 -2
- package/dist/social-providers/wechat.mjs +0 -3
- package/dist/social-providers/zoom.d.mts +1 -2
- package/dist/social-providers/zoom.mjs +0 -4
- package/dist/types/context.d.mts +3 -5
- package/dist/types/cookie.d.mts +1 -2
- package/dist/types/helper.d.mts +1 -2
- package/dist/types/init-options.d.mts +14 -6
- package/dist/types/plugin-client.d.mts +2 -2
- package/dist/types/plugin.d.mts +6 -3
- package/dist/types/secret.d.mts +1 -2
- package/dist/utils/db.d.mts +1 -2
- package/dist/utils/db.mjs +0 -2
- package/dist/utils/deprecate.d.mts +1 -2
- package/dist/utils/deprecate.mjs +0 -2
- package/dist/utils/error-codes.d.mts +1 -2
- package/dist/utils/error-codes.mjs +0 -2
- package/dist/utils/fetch-metadata.d.mts +1 -2
- package/dist/utils/fetch-metadata.mjs +0 -2
- package/dist/utils/id.d.mts +1 -2
- package/dist/utils/id.mjs +0 -3
- package/dist/utils/ip.d.mts +1 -2
- package/dist/utils/ip.mjs +0 -3
- package/dist/utils/json.d.mts +1 -2
- package/dist/utils/json.mjs +0 -4
- package/dist/utils/string.d.mts +1 -2
- package/dist/utils/string.mjs +0 -2
- package/dist/utils/url.d.mts +1 -2
- package/dist/utils/url.mjs +0 -2
- package/package.json +11 -9
- package/src/api/index.ts +151 -41
- package/src/context/endpoint-context.ts +2 -1
- package/src/db/adapter/factory.ts +2 -0
- package/src/db/adapter/index.ts +8 -0
- package/src/instrumentation/tracer.ts +40 -12
- package/src/social-providers/index.ts +0 -2
- package/src/types/context.ts +2 -3
- package/src/types/init-options.ts +13 -4
- package/src/types/plugin-client.ts +1 -0
- package/src/types/plugin.ts +15 -1
- package/dist/api/index.mjs.map +0 -1
- package/dist/async_hooks/index.mjs.map +0 -1
- package/dist/async_hooks/pure.index.mjs.map +0 -1
- package/dist/context/endpoint-context.mjs.map +0 -1
- package/dist/context/global.mjs.map +0 -1
- package/dist/context/request-state.mjs.map +0 -1
- package/dist/context/transaction.mjs.map +0 -1
- package/dist/db/adapter/factory.mjs.map +0 -1
- package/dist/db/adapter/get-default-field-name.mjs.map +0 -1
- package/dist/db/adapter/get-default-model-name.mjs.map +0 -1
- package/dist/db/adapter/get-field-attributes.mjs.map +0 -1
- package/dist/db/adapter/get-field-name.mjs.map +0 -1
- package/dist/db/adapter/get-id-field.mjs.map +0 -1
- package/dist/db/adapter/get-model-name.mjs.map +0 -1
- package/dist/db/adapter/index.mjs.map +0 -1
- package/dist/db/adapter/utils.mjs.map +0 -1
- package/dist/db/get-tables.mjs.map +0 -1
- package/dist/db/schema/account.mjs.map +0 -1
- package/dist/db/schema/rate-limit.mjs.map +0 -1
- package/dist/db/schema/session.mjs.map +0 -1
- package/dist/db/schema/shared.mjs.map +0 -1
- package/dist/db/schema/user.mjs.map +0 -1
- package/dist/db/schema/verification.mjs.map +0 -1
- package/dist/env/color-depth.mjs.map +0 -1
- package/dist/env/env-impl.mjs.map +0 -1
- package/dist/env/logger.mjs.map +0 -1
- package/dist/error/codes.mjs.map +0 -1
- package/dist/error/index.mjs.map +0 -1
- package/dist/instrumentation/attributes.mjs.map +0 -1
- package/dist/instrumentation/tracer.mjs.map +0 -1
- package/dist/oauth2/client-credentials-token.mjs.map +0 -1
- package/dist/oauth2/create-authorization-url.mjs.map +0 -1
- package/dist/oauth2/refresh-access-token.mjs.map +0 -1
- package/dist/oauth2/utils.mjs.map +0 -1
- package/dist/oauth2/validate-authorization-code.mjs.map +0 -1
- package/dist/oauth2/verify.mjs.map +0 -1
- package/dist/social-providers/apple.mjs.map +0 -1
- package/dist/social-providers/atlassian.mjs.map +0 -1
- package/dist/social-providers/cognito.mjs.map +0 -1
- package/dist/social-providers/discord.mjs.map +0 -1
- package/dist/social-providers/dropbox.mjs.map +0 -1
- package/dist/social-providers/facebook.mjs.map +0 -1
- package/dist/social-providers/figma.mjs.map +0 -1
- package/dist/social-providers/github.mjs.map +0 -1
- package/dist/social-providers/gitlab.mjs.map +0 -1
- package/dist/social-providers/google.mjs.map +0 -1
- package/dist/social-providers/huggingface.mjs.map +0 -1
- package/dist/social-providers/index.mjs.map +0 -1
- package/dist/social-providers/kakao.mjs.map +0 -1
- package/dist/social-providers/kick.mjs.map +0 -1
- package/dist/social-providers/line.mjs.map +0 -1
- package/dist/social-providers/linear.mjs.map +0 -1
- package/dist/social-providers/linkedin.mjs.map +0 -1
- package/dist/social-providers/microsoft-entra-id.mjs.map +0 -1
- package/dist/social-providers/naver.mjs.map +0 -1
- package/dist/social-providers/notion.mjs.map +0 -1
- package/dist/social-providers/paybin.mjs.map +0 -1
- package/dist/social-providers/paypal.mjs.map +0 -1
- package/dist/social-providers/polar.mjs.map +0 -1
- package/dist/social-providers/railway.mjs.map +0 -1
- package/dist/social-providers/reddit.mjs.map +0 -1
- package/dist/social-providers/roblox.mjs.map +0 -1
- package/dist/social-providers/salesforce.mjs.map +0 -1
- package/dist/social-providers/slack.mjs.map +0 -1
- package/dist/social-providers/spotify.mjs.map +0 -1
- package/dist/social-providers/tiktok.mjs.map +0 -1
- package/dist/social-providers/twitch.mjs.map +0 -1
- package/dist/social-providers/twitter.mjs.map +0 -1
- package/dist/social-providers/vercel.mjs.map +0 -1
- package/dist/social-providers/vk.mjs.map +0 -1
- package/dist/social-providers/wechat.mjs.map +0 -1
- package/dist/social-providers/zoom.mjs.map +0 -1
- package/dist/utils/db.mjs.map +0 -1
- package/dist/utils/deprecate.mjs.map +0 -1
- package/dist/utils/error-codes.mjs.map +0 -1
- package/dist/utils/fetch-metadata.mjs.map +0 -1
- package/dist/utils/id.mjs.map +0 -1
- package/dist/utils/ip.mjs.map +0 -1
- package/dist/utils/json.mjs.map +0 -1
- package/dist/utils/string.mjs.map +0 -1
- package/dist/utils/url.mjs.map +0 -1
- package/src/context/request-state.test.ts +0 -94
- package/src/db/adapter/get-id-field.test.ts +0 -222
- package/src/db/test/get-tables.test.ts +0 -116
- package/src/env/logger.test.ts +0 -34
- package/src/instrumentation/instrumentation.test.ts +0 -139
- package/src/oauth2/refresh-access-token.test.ts +0 -90
- package/src/oauth2/validate-token.test.ts +0 -229
- package/src/utils/deprecate.test.ts +0 -71
- package/src/utils/fetch-metadata.test.ts +0 -28
- package/src/utils/ip.test.ts +0 -255
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { logger } from "../env/logger.mjs";
|
|
2
|
-
import "../env/index.mjs";
|
|
3
2
|
import { BetterAuthError } from "../error/index.mjs";
|
|
4
3
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
5
4
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
6
5
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
7
|
-
import "../oauth2/index.mjs";
|
|
8
6
|
import { betterFetch } from "@better-fetch/fetch";
|
|
9
|
-
|
|
10
7
|
//#region src/social-providers/figma.ts
|
|
11
8
|
const figma = (options) => {
|
|
12
9
|
const tokenEndpoint = "https://api.figma.com/v1/oauth/token";
|
|
@@ -82,7 +79,5 @@ const figma = (options) => {
|
|
|
82
79
|
options
|
|
83
80
|
};
|
|
84
81
|
};
|
|
85
|
-
|
|
86
82
|
//#endregion
|
|
87
83
|
export { figma };
|
|
88
|
-
//# sourceMappingURL=figma.mjs.map
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { logger } from "../env/logger.mjs";
|
|
2
|
-
import "../env/index.mjs";
|
|
3
2
|
import { getOAuth2Tokens } from "../oauth2/utils.mjs";
|
|
4
3
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
5
4
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
6
5
|
import { createAuthorizationCodeRequest } from "../oauth2/validate-authorization-code.mjs";
|
|
7
|
-
import "../oauth2/index.mjs";
|
|
8
6
|
import { betterFetch } from "@better-fetch/fetch";
|
|
9
|
-
|
|
10
7
|
//#region src/social-providers/github.ts
|
|
11
8
|
const github = (options) => {
|
|
12
9
|
const tokenEndpoint = "https://github.com/login/oauth/access_token";
|
|
@@ -91,7 +88,5 @@ const github = (options) => {
|
|
|
91
88
|
options
|
|
92
89
|
};
|
|
93
90
|
};
|
|
94
|
-
|
|
95
91
|
//#endregion
|
|
96
92
|
export { github };
|
|
97
|
-
//# sourceMappingURL=github.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/gitlab.ts
|
|
8
6
|
const cleanDoubleSlashes = (input = "") => {
|
|
9
7
|
return input.split("://").map((str) => str.replace(/\/{2,}/g, "/")).join("://");
|
|
@@ -77,7 +75,5 @@ const gitlab = (options) => {
|
|
|
77
75
|
options
|
|
78
76
|
};
|
|
79
77
|
};
|
|
80
|
-
|
|
81
78
|
//#endregion
|
|
82
79
|
export { gitlab };
|
|
83
|
-
//# sourceMappingURL=gitlab.mjs.map
|
|
@@ -94,5 +94,4 @@ declare const google: (options: GoogleOptions) => {
|
|
|
94
94
|
};
|
|
95
95
|
declare const getGooglePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
96
96
|
//#endregion
|
|
97
|
-
export { GoogleOptions, GoogleProfile, getGooglePublicKey, google };
|
|
98
|
-
//# sourceMappingURL=google.d.mts.map
|
|
97
|
+
export { GoogleOptions, GoogleProfile, getGooglePublicKey, google };
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { logger } from "../env/logger.mjs";
|
|
2
|
-
import "../env/index.mjs";
|
|
3
2
|
import { APIError, BetterAuthError } from "../error/index.mjs";
|
|
4
3
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
5
4
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
6
5
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
7
|
-
import "../oauth2/index.mjs";
|
|
8
6
|
import { betterFetch } from "@better-fetch/fetch";
|
|
9
7
|
import { decodeJwt, decodeProtectedHeader, importJWK, jwtVerify } from "jose";
|
|
10
|
-
|
|
11
8
|
//#region src/social-providers/google.ts
|
|
12
9
|
const google = (options) => {
|
|
13
10
|
return {
|
|
@@ -107,7 +104,5 @@ const getGooglePublicKey = async (kid) => {
|
|
|
107
104
|
if (!jwk) throw new Error(`JWK with kid ${kid} not found`);
|
|
108
105
|
return await importJWK(jwk, jwk.alg);
|
|
109
106
|
};
|
|
110
|
-
|
|
111
107
|
//#endregion
|
|
112
108
|
export { getGooglePublicKey, google };
|
|
113
|
-
//# sourceMappingURL=google.mjs.map
|
|
@@ -80,5 +80,4 @@ declare const huggingface: (options: HuggingFaceOptions) => {
|
|
|
80
80
|
options: HuggingFaceOptions;
|
|
81
81
|
};
|
|
82
82
|
//#endregion
|
|
83
|
-
export { HuggingFaceOptions, HuggingFaceProfile, huggingface };
|
|
84
|
-
//# sourceMappingURL=huggingface.d.mts.map
|
|
83
|
+
export { HuggingFaceOptions, HuggingFaceProfile, huggingface };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/huggingface.ts
|
|
8
6
|
const huggingface = (options) => {
|
|
9
7
|
const tokenEndpoint = "https://huggingface.co/oauth/token";
|
|
@@ -71,7 +69,5 @@ const huggingface = (options) => {
|
|
|
71
69
|
options
|
|
72
70
|
};
|
|
73
71
|
};
|
|
74
|
-
|
|
75
72
|
//#endregion
|
|
76
73
|
export { huggingface };
|
|
77
|
-
//# sourceMappingURL=huggingface.mjs.map
|
|
@@ -1831,5 +1831,4 @@ type SocialProviders = { [K in SocialProviderList[number]]?: AwaitableFunction<P
|
|
|
1831
1831
|
}> };
|
|
1832
1832
|
type SocialProviderList = typeof socialProviderList;
|
|
1833
1833
|
//#endregion
|
|
1834
|
-
export { AccountStatus, AppleNonConformUser, AppleOptions, AppleProfile, AtlassianOptions, AtlassianProfile, CognitoOptions, CognitoProfile, DiscordOptions, DiscordProfile, DropboxOptions, DropboxProfile, FacebookOptions, FacebookProfile, FigmaOptions, FigmaProfile, GithubOptions, GithubProfile, GitlabOptions, GitlabProfile, GoogleOptions, GoogleProfile, HuggingFaceOptions, HuggingFaceProfile, KakaoOptions, KakaoProfile, KickOptions, KickProfile, LineIdTokenPayload, LineOptions, LineUserInfo, LinearOptions, LinearProfile, LinearUser, LinkedInOptions, LinkedInProfile, LoginType, MicrosoftEntraIDProfile, MicrosoftOptions, NaverOptions, NaverProfile, NotionOptions, NotionProfile, PayPalOptions, PayPalProfile, PayPalTokenResponse, PaybinOptions, PaybinProfile, PhoneNumber, PolarOptions, PolarProfile, PronounOption, RailwayOptions, RailwayProfile, RedditOptions, RedditProfile, RobloxOptions, RobloxProfile, SalesforceOptions, SalesforceProfile, SlackOptions, SlackProfile, SocialProvider, SocialProviderList, SocialProviderListEnum, SocialProviders, SpotifyOptions, SpotifyProfile, TiktokOptions, TiktokProfile, TwitchOptions, TwitchProfile, TwitterOption, TwitterProfile, VercelOptions, VercelProfile, VkOption, VkProfile, WeChatOptions, WeChatProfile, ZoomOptions, ZoomProfile, apple, atlassian, cognito, discord, dropbox, facebook, figma, getApplePublicKey, getCognitoPublicKey, getGooglePublicKey, getMicrosoftPublicKey, github, gitlab, google, huggingface, kakao, kick, line, linear, linkedin, microsoft, naver, notion, paybin, paypal, polar, railway, reddit, roblox, salesforce, slack, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vercel, vk, wechat, zoom };
|
|
1835
|
-
//# sourceMappingURL=index.d.mts.map
|
|
1834
|
+
export { AccountStatus, AppleNonConformUser, AppleOptions, AppleProfile, AtlassianOptions, AtlassianProfile, CognitoOptions, CognitoProfile, DiscordOptions, DiscordProfile, DropboxOptions, DropboxProfile, FacebookOptions, FacebookProfile, FigmaOptions, FigmaProfile, GithubOptions, GithubProfile, GitlabOptions, GitlabProfile, GoogleOptions, GoogleProfile, HuggingFaceOptions, HuggingFaceProfile, KakaoOptions, KakaoProfile, KickOptions, KickProfile, LineIdTokenPayload, LineOptions, LineUserInfo, LinearOptions, LinearProfile, LinearUser, LinkedInOptions, LinkedInProfile, LoginType, MicrosoftEntraIDProfile, MicrosoftOptions, NaverOptions, NaverProfile, NotionOptions, NotionProfile, PayPalOptions, PayPalProfile, PayPalTokenResponse, PaybinOptions, PaybinProfile, PhoneNumber, PolarOptions, PolarProfile, PronounOption, RailwayOptions, RailwayProfile, RedditOptions, RedditProfile, RobloxOptions, RobloxProfile, SalesforceOptions, SalesforceProfile, SlackOptions, SlackProfile, SocialProvider, SocialProviderList, SocialProviderListEnum, SocialProviders, SpotifyOptions, SpotifyProfile, TiktokOptions, TiktokProfile, TwitchOptions, TwitchProfile, TwitterOption, TwitterProfile, VercelOptions, VercelProfile, VkOption, VkProfile, WeChatOptions, WeChatProfile, ZoomOptions, ZoomProfile, apple, atlassian, cognito, discord, dropbox, facebook, figma, getApplePublicKey, getCognitoPublicKey, getGooglePublicKey, getMicrosoftPublicKey, github, gitlab, google, huggingface, kakao, kick, line, linear, linkedin, microsoft, naver, notion, paybin, paypal, polar, railway, reddit, roblox, salesforce, slack, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vercel, vk, wechat, zoom };
|
|
@@ -34,7 +34,6 @@ import { vk } from "./vk.mjs";
|
|
|
34
34
|
import { wechat } from "./wechat.mjs";
|
|
35
35
|
import { zoom } from "./zoom.mjs";
|
|
36
36
|
import * as z from "zod";
|
|
37
|
-
|
|
38
37
|
//#region src/social-providers/index.ts
|
|
39
38
|
const socialProviders = {
|
|
40
39
|
apple,
|
|
@@ -75,7 +74,5 @@ const socialProviders = {
|
|
|
75
74
|
};
|
|
76
75
|
const socialProviderList = Object.keys(socialProviders);
|
|
77
76
|
const SocialProviderListEnum = z.enum(socialProviderList).or(z.string());
|
|
78
|
-
|
|
79
77
|
//#endregion
|
|
80
78
|
export { SocialProviderListEnum, apple, atlassian, cognito, discord, dropbox, facebook, figma, getApplePublicKey, getCognitoPublicKey, getGooglePublicKey, getMicrosoftPublicKey, github, gitlab, google, huggingface, kakao, kick, line, linear, linkedin, microsoft, naver, notion, paybin, paypal, polar, railway, reddit, roblox, salesforce, slack, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vercel, vk, wechat, zoom };
|
|
81
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/kakao.ts
|
|
8
6
|
const kakao = (options) => {
|
|
9
7
|
const tokenEndpoint = "https://kauth.kakao.com/oauth/token";
|
|
@@ -68,7 +66,5 @@ const kakao = (options) => {
|
|
|
68
66
|
options
|
|
69
67
|
};
|
|
70
68
|
};
|
|
71
|
-
|
|
72
69
|
//#endregion
|
|
73
70
|
export { kakao };
|
|
74
|
-
//# sourceMappingURL=kakao.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/kick.ts
|
|
8
6
|
const kick = (options) => {
|
|
9
7
|
return {
|
|
@@ -66,7 +64,5 @@ const kick = (options) => {
|
|
|
66
64
|
options
|
|
67
65
|
};
|
|
68
66
|
};
|
|
69
|
-
|
|
70
67
|
//#endregion
|
|
71
68
|
export { kick };
|
|
72
|
-
//# sourceMappingURL=kick.mjs.map
|
|
@@ -102,5 +102,4 @@ declare const line: (options: LineOptions) => {
|
|
|
102
102
|
options: LineOptions;
|
|
103
103
|
};
|
|
104
104
|
//#endregion
|
|
105
|
-
export { LineIdTokenPayload, LineOptions, LineUserInfo, line };
|
|
106
|
-
//# sourceMappingURL=line.d.mts.map
|
|
105
|
+
export { LineIdTokenPayload, LineOptions, LineUserInfo, line };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
5
|
import { decodeJwt } from "jose";
|
|
7
|
-
|
|
8
6
|
//#region src/social-providers/line.ts
|
|
9
7
|
/**
|
|
10
8
|
* LINE Login v2.1
|
|
@@ -108,7 +106,5 @@ const line = (options) => {
|
|
|
108
106
|
options
|
|
109
107
|
};
|
|
110
108
|
};
|
|
111
|
-
|
|
112
109
|
//#endregion
|
|
113
110
|
export { line };
|
|
114
|
-
//# sourceMappingURL=line.mjs.map
|
|
@@ -65,5 +65,4 @@ declare const linear: (options: LinearOptions) => {
|
|
|
65
65
|
options: LinearOptions;
|
|
66
66
|
};
|
|
67
67
|
//#endregion
|
|
68
|
-
export { LinearOptions, LinearProfile, LinearUser, linear };
|
|
69
|
-
//# sourceMappingURL=linear.d.mts.map
|
|
68
|
+
export { LinearOptions, LinearProfile, LinearUser, linear };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/linear.ts
|
|
8
6
|
const linear = (options) => {
|
|
9
7
|
const tokenEndpoint = "https://api.linear.app/oauth/token";
|
|
@@ -83,7 +81,5 @@ const linear = (options) => {
|
|
|
83
81
|
options
|
|
84
82
|
};
|
|
85
83
|
};
|
|
86
|
-
|
|
87
84
|
//#endregion
|
|
88
85
|
export { linear };
|
|
89
|
-
//# sourceMappingURL=linear.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/linkedin.ts
|
|
8
6
|
const linkedin = (options) => {
|
|
9
7
|
const authorizationEndpoint = "https://www.linkedin.com/oauth/v2/authorization";
|
|
@@ -71,7 +69,5 @@ const linkedin = (options) => {
|
|
|
71
69
|
options
|
|
72
70
|
};
|
|
73
71
|
};
|
|
74
|
-
|
|
75
72
|
//#endregion
|
|
76
73
|
export { linkedin };
|
|
77
|
-
//# sourceMappingURL=linkedin.mjs.map
|
|
@@ -171,5 +171,4 @@ declare const microsoft: (options: MicrosoftOptions) => {
|
|
|
171
171
|
};
|
|
172
172
|
declare const getMicrosoftPublicKey: (kid: string, tenant: string, authority: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
173
173
|
//#endregion
|
|
174
|
-
export { MicrosoftEntraIDProfile, MicrosoftOptions, getMicrosoftPublicKey, microsoft };
|
|
175
|
-
//# sourceMappingURL=microsoft-entra-id.d.mts.map
|
|
174
|
+
export { MicrosoftEntraIDProfile, MicrosoftOptions, getMicrosoftPublicKey, microsoft };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { logger } from "../env/logger.mjs";
|
|
2
|
-
import "../env/index.mjs";
|
|
3
2
|
import { APIError } from "../error/index.mjs";
|
|
4
3
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
5
4
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
6
5
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
7
|
-
import "../oauth2/index.mjs";
|
|
8
6
|
import { base64 } from "@better-auth/utils/base64";
|
|
9
7
|
import { betterFetch } from "@better-fetch/fetch";
|
|
10
8
|
import { decodeJwt, decodeProtectedHeader, importJWK, jwtVerify } from "jose";
|
|
11
|
-
|
|
12
9
|
//#region src/social-providers/microsoft-entra-id.ts
|
|
13
10
|
const microsoft = (options) => {
|
|
14
11
|
const tenant = options.tenantId || "common";
|
|
@@ -134,7 +131,5 @@ const getMicrosoftPublicKey = async (kid, tenant, authority) => {
|
|
|
134
131
|
if (!jwk) throw new Error(`JWK with kid ${kid} not found`);
|
|
135
132
|
return await importJWK(jwk, jwk.alg);
|
|
136
133
|
};
|
|
137
|
-
|
|
138
134
|
//#endregion
|
|
139
135
|
export { getMicrosoftPublicKey, microsoft };
|
|
140
|
-
//# sourceMappingURL=microsoft-entra-id.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/naver.ts
|
|
8
6
|
const naver = (options) => {
|
|
9
7
|
const tokenEndpoint = "https://nid.naver.com/oauth2.0/token";
|
|
@@ -63,7 +61,5 @@ const naver = (options) => {
|
|
|
63
61
|
options
|
|
64
62
|
};
|
|
65
63
|
};
|
|
66
|
-
|
|
67
64
|
//#endregion
|
|
68
65
|
export { naver };
|
|
69
|
-
//# sourceMappingURL=naver.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/notion.ts
|
|
8
6
|
const notion = (options) => {
|
|
9
7
|
const tokenEndpoint = "https://api.notion.com/v1/oauth/token";
|
|
@@ -70,7 +68,5 @@ const notion = (options) => {
|
|
|
70
68
|
options
|
|
71
69
|
};
|
|
72
70
|
};
|
|
73
|
-
|
|
74
71
|
//#endregion
|
|
75
72
|
export { notion };
|
|
76
|
-
//# sourceMappingURL=notion.mjs.map
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { logger } from "../env/logger.mjs";
|
|
2
|
-
import "../env/index.mjs";
|
|
3
2
|
import { BetterAuthError } from "../error/index.mjs";
|
|
4
3
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
5
4
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
6
5
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
7
|
-
import "../oauth2/index.mjs";
|
|
8
6
|
import { decodeJwt } from "jose";
|
|
9
|
-
|
|
10
7
|
//#region src/social-providers/paybin.ts
|
|
11
8
|
const paybin = (options) => {
|
|
12
9
|
const issuer = options.issuer || "https://idp.paybin.io";
|
|
@@ -80,7 +77,5 @@ const paybin = (options) => {
|
|
|
80
77
|
options
|
|
81
78
|
};
|
|
82
79
|
};
|
|
83
|
-
|
|
84
80
|
//#endregion
|
|
85
81
|
export { paybin };
|
|
86
|
-
//# sourceMappingURL=paybin.mjs.map
|
|
@@ -126,5 +126,4 @@ declare const paypal: (options: PayPalOptions) => {
|
|
|
126
126
|
options: PayPalOptions;
|
|
127
127
|
};
|
|
128
128
|
//#endregion
|
|
129
|
-
export { PayPalOptions, PayPalProfile, PayPalTokenResponse, paypal };
|
|
130
|
-
//# sourceMappingURL=paypal.d.mts.map
|
|
129
|
+
export { PayPalOptions, PayPalProfile, PayPalTokenResponse, paypal };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { logger } from "../env/logger.mjs";
|
|
2
|
-
import "../env/index.mjs";
|
|
3
2
|
import { BetterAuthError } from "../error/index.mjs";
|
|
4
3
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
5
|
-
import "../oauth2/index.mjs";
|
|
6
4
|
import { base64 } from "@better-auth/utils/base64";
|
|
7
5
|
import { betterFetch } from "@better-fetch/fetch";
|
|
8
6
|
import { decodeJwt } from "jose";
|
|
9
|
-
|
|
10
7
|
//#region src/social-providers/paypal.ts
|
|
11
8
|
const paypal = (options) => {
|
|
12
9
|
const isSandbox = (options.environment || "sandbox") === "sandbox";
|
|
@@ -139,7 +136,5 @@ const paypal = (options) => {
|
|
|
139
136
|
options
|
|
140
137
|
};
|
|
141
138
|
};
|
|
142
|
-
|
|
143
139
|
//#endregion
|
|
144
140
|
export { paypal };
|
|
145
|
-
//# sourceMappingURL=paypal.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/polar.ts
|
|
8
6
|
const polar = (options) => {
|
|
9
7
|
const tokenEndpoint = "https://api.polar.sh/v1/oauth2/token";
|
|
@@ -69,7 +67,5 @@ const polar = (options) => {
|
|
|
69
67
|
options
|
|
70
68
|
};
|
|
71
69
|
};
|
|
72
|
-
|
|
73
70
|
//#endregion
|
|
74
71
|
export { polar };
|
|
75
|
-
//# sourceMappingURL=polar.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/railway.ts
|
|
8
6
|
const authorizationEndpoint = "https://backboard.railway.com/oauth/auth";
|
|
9
7
|
const tokenEndpoint = "https://backboard.railway.com/oauth/token";
|
|
@@ -72,7 +70,5 @@ const railway = (options) => {
|
|
|
72
70
|
options
|
|
73
71
|
};
|
|
74
72
|
};
|
|
75
|
-
|
|
76
73
|
//#endregion
|
|
77
74
|
export { railway };
|
|
78
|
-
//# sourceMappingURL=railway.mjs.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { getOAuth2Tokens } from "../oauth2/utils.mjs";
|
|
2
2
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
3
3
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { base64 } from "@better-auth/utils/base64";
|
|
6
5
|
import { betterFetch } from "@better-fetch/fetch";
|
|
7
|
-
|
|
8
6
|
//#region src/social-providers/reddit.ts
|
|
9
7
|
const reddit = (options) => {
|
|
10
8
|
return {
|
|
@@ -78,7 +76,5 @@ const reddit = (options) => {
|
|
|
78
76
|
options
|
|
79
77
|
};
|
|
80
78
|
};
|
|
81
|
-
|
|
82
79
|
//#endregion
|
|
83
80
|
export { reddit };
|
|
84
|
-
//# sourceMappingURL=reddit.mjs.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
2
2
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
3
|
-
import "../oauth2/index.mjs";
|
|
4
3
|
import { betterFetch } from "@better-fetch/fetch";
|
|
5
|
-
|
|
6
4
|
//#region src/social-providers/roblox.ts
|
|
7
5
|
const roblox = (options) => {
|
|
8
6
|
const tokenEndpoint = "https://apis.roblox.com/oauth/v1/token";
|
|
@@ -55,7 +53,5 @@ const roblox = (options) => {
|
|
|
55
53
|
options
|
|
56
54
|
};
|
|
57
55
|
};
|
|
58
|
-
|
|
59
56
|
//#endregion
|
|
60
57
|
export { roblox };
|
|
61
|
-
//# sourceMappingURL=roblox.mjs.map
|
|
@@ -76,5 +76,4 @@ declare const salesforce: (options: SalesforceOptions) => {
|
|
|
76
76
|
options: SalesforceOptions;
|
|
77
77
|
};
|
|
78
78
|
//#endregion
|
|
79
|
-
export { SalesforceOptions, SalesforceProfile, salesforce };
|
|
80
|
-
//# sourceMappingURL=salesforce.d.mts.map
|
|
79
|
+
export { SalesforceOptions, SalesforceProfile, salesforce };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { logger } from "../env/logger.mjs";
|
|
2
|
-
import "../env/index.mjs";
|
|
3
2
|
import { BetterAuthError } from "../error/index.mjs";
|
|
4
3
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
5
4
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
6
5
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
7
|
-
import "../oauth2/index.mjs";
|
|
8
6
|
import { betterFetch } from "@better-fetch/fetch";
|
|
9
|
-
|
|
10
7
|
//#region src/social-providers/salesforce.ts
|
|
11
8
|
const salesforce = (options) => {
|
|
12
9
|
const isSandbox = (options.environment ?? "production") === "sandbox";
|
|
@@ -86,7 +83,5 @@ const salesforce = (options) => {
|
|
|
86
83
|
options
|
|
87
84
|
};
|
|
88
85
|
};
|
|
89
|
-
|
|
90
86
|
//#endregion
|
|
91
87
|
export { salesforce };
|
|
92
|
-
//# sourceMappingURL=salesforce.mjs.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
2
2
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
3
|
-
import "../oauth2/index.mjs";
|
|
4
3
|
import { betterFetch } from "@better-fetch/fetch";
|
|
5
|
-
|
|
6
4
|
//#region src/social-providers/slack.ts
|
|
7
5
|
const slack = (options) => {
|
|
8
6
|
const tokenEndpoint = "https://slack.com/api/openid.connect.token";
|
|
@@ -64,7 +62,5 @@ const slack = (options) => {
|
|
|
64
62
|
options
|
|
65
63
|
};
|
|
66
64
|
};
|
|
67
|
-
|
|
68
65
|
//#endregion
|
|
69
66
|
export { slack };
|
|
70
|
-
//# sourceMappingURL=slack.mjs.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { createAuthorizationURL } from "../oauth2/create-authorization-url.mjs";
|
|
2
2
|
import { refreshAccessToken } from "../oauth2/refresh-access-token.mjs";
|
|
3
3
|
import { validateAuthorizationCode } from "../oauth2/validate-authorization-code.mjs";
|
|
4
|
-
import "../oauth2/index.mjs";
|
|
5
4
|
import { betterFetch } from "@better-fetch/fetch";
|
|
6
|
-
|
|
7
5
|
//#region src/social-providers/spotify.ts
|
|
8
6
|
const spotify = (options) => {
|
|
9
7
|
const tokenEndpoint = "https://accounts.spotify.com/api/token";
|
|
@@ -67,7 +65,5 @@ const spotify = (options) => {
|
|
|
67
65
|
options
|
|
68
66
|
};
|
|
69
67
|
};
|
|
70
|
-
|
|
71
68
|
//#endregion
|
|
72
69
|
export { spotify };
|
|
73
|
-
//# sourceMappingURL=spotify.mjs.map
|