@better-auth/oauth-provider 1.6.26 → 1.6.27
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/client-resource.mjs +2 -2
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{oauth-dQVivAXR.d.mts → oauth-ByOX8zGY.d.mts} +30 -30
- package/dist/{utils-DYn-npiB.mjs → utils-D_VJL3Eh.mjs} +1 -1
- package/dist/{version-BZrv-Tx8.mjs → version-C5TN23gF.mjs} +1 -1
- package/package.json +6 -6
package/dist/client-resource.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as getJwtPlugin, b as handleMcpErrors, o as getOAuthProviderPlugin } from "./utils-
|
|
2
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { a as getJwtPlugin, b as handleMcpErrors, o as getOAuthProviderPlugin } from "./utils-D_VJL3Eh.mjs";
|
|
2
|
+
import { t as PACKAGE_VERSION } from "./version-C5TN23gF.mjs";
|
|
3
3
|
import { verifyAccessToken } from "better-auth/oauth2";
|
|
4
4
|
import { APIError } from "better-call";
|
|
5
5
|
import { logger } from "@better-auth/core/env";
|
package/dist/client.d.mts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as buildSignedOAuthQuery, t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { n as buildSignedOAuthQuery, t as PACKAGE_VERSION } from "./version-C5TN23gF.mjs";
|
|
2
2
|
import { safeJSONParse } from "@better-auth/core/utils/json";
|
|
3
3
|
//#region src/client.ts
|
|
4
4
|
const oauthProviderClient = () => {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as Scope, a as OAuthClient, b as Awaitable, c as TokenEndpointAuthMethod, d as OAuthConsent, f as OAuthOpaqueAccessToken, g as SchemaClient, h as Prompt, i as GrantType, l as AuthorizePrompt, m as OAuthRefreshToken, n as AuthServerMetadata, o as OIDCMetadata, p as OAuthOptions, r as BearerMethodsSupported, s as ResourceServerMetadata, t as AuthMethod, u as OAuthAuthorizationQuery, v as StoreTokenType, y as VerificationValue } from "./oauth-BFBataE_.mjs";
|
|
2
|
-
import { n as oauthProvider, t as getOAuthProviderState } from "./oauth-
|
|
2
|
+
import { n as oauthProvider, t as getOAuthProviderState } from "./oauth-ByOX8zGY.mjs";
|
|
3
3
|
import { verifyAccessToken } from "better-auth/oauth2";
|
|
4
4
|
import { JWSAlgorithms, JwtOptions } from "better-auth/plugins";
|
|
5
5
|
import { JWTPayload } from "jose";
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as storeToken, a as getJwtPlugin, c as isPKCERequired, d as parsePrompt, f as removePromptFromQuery, g as storeClientSecret, h as searchParamsToQuery, i as getClient, l as normalizeTimestampValue, m as resolveSubjectIdentifier, n as clientAllowsGrant, p as resolveSessionAuthTime, r as decryptStoredClientSecret, s as getStoredToken, t as basicToClientCredentials, u as parseClientMetadata, v as validateClientCredentials, x as mcpHandler, y as verifyOAuthQueryParams } from "./utils-
|
|
2
|
-
import { a as postLoginClearedParam, i as getSignedQueryIssuedAt, o as setSignedOAuthQueryParameterNames, r as canonicalizeOAuthQueryParams, s as signedQueryIssuedAtParam, t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { _ as storeToken, a as getJwtPlugin, c as isPKCERequired, d as parsePrompt, f as removePromptFromQuery, g as storeClientSecret, h as searchParamsToQuery, i as getClient, l as normalizeTimestampValue, m as resolveSubjectIdentifier, n as clientAllowsGrant, p as resolveSessionAuthTime, r as decryptStoredClientSecret, s as getStoredToken, t as basicToClientCredentials, u as parseClientMetadata, v as validateClientCredentials, x as mcpHandler, y as verifyOAuthQueryParams } from "./utils-D_VJL3Eh.mjs";
|
|
2
|
+
import { a as postLoginClearedParam, i as getSignedQueryIssuedAt, o as setSignedOAuthQueryParameterNames, r as canonicalizeOAuthQueryParams, s as signedQueryIssuedAtParam, t as PACKAGE_VERSION } from "./version-C5TN23gF.mjs";
|
|
3
3
|
import { APIError, createAuthEndpoint, createAuthMiddleware, dispatchAuthEndpoint, getOAuthState, getSessionFromCtx, sessionMiddleware } from "better-auth/api";
|
|
4
4
|
import { generateCodeChallenge, getJwks, verifyJwsAccessToken } from "better-auth/oauth2";
|
|
5
5
|
import { APIError as APIError$1 } from "better-call";
|
|
@@ -33,14 +33,14 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
33
33
|
hooks: {
|
|
34
34
|
before: {
|
|
35
35
|
matcher(ctx: import("better-auth").HookEndpointContext): any;
|
|
36
|
-
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void
|
|
36
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
37
37
|
}[];
|
|
38
38
|
after: {
|
|
39
39
|
matcher(ctx: import("better-auth").HookEndpointContext): boolean;
|
|
40
|
-
handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
40
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
41
41
|
redirect: boolean;
|
|
42
42
|
url: string;
|
|
43
|
-
} | undefined
|
|
43
|
+
} | undefined>>;
|
|
44
44
|
}[];
|
|
45
45
|
};
|
|
46
46
|
endpoints: {
|
|
@@ -178,7 +178,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
178
178
|
scope: z.ZodOptional<z.ZodString>;
|
|
179
179
|
oauth_query: z.ZodOptional<z.ZodString>;
|
|
180
180
|
}, z.core.$strip>;
|
|
181
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
181
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
182
182
|
session: {
|
|
183
183
|
session: Record<string, any> & {
|
|
184
184
|
id: string;
|
|
@@ -200,7 +200,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
200
200
|
image?: string | null | undefined;
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
}
|
|
203
|
+
}>>[];
|
|
204
204
|
metadata: {
|
|
205
205
|
openapi: {
|
|
206
206
|
description: string;
|
|
@@ -241,7 +241,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
241
241
|
postLogin: z.ZodOptional<z.ZodBoolean>;
|
|
242
242
|
oauth_query: z.ZodOptional<z.ZodString>;
|
|
243
243
|
}, z.core.$strip>;
|
|
244
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
244
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
245
245
|
session: {
|
|
246
246
|
session: Record<string, any> & {
|
|
247
247
|
id: string;
|
|
@@ -263,7 +263,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
263
263
|
image?: string | null | undefined;
|
|
264
264
|
};
|
|
265
265
|
};
|
|
266
|
-
}
|
|
266
|
+
}>>[];
|
|
267
267
|
metadata: {
|
|
268
268
|
openapi: {
|
|
269
269
|
description: string;
|
|
@@ -1176,7 +1176,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1176
1176
|
}, OAuthClient>;
|
|
1177
1177
|
createOAuthClient: import("better-call").StrictEndpoint<"/oauth2/create-client", {
|
|
1178
1178
|
method: "POST";
|
|
1179
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1179
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1180
1180
|
session: {
|
|
1181
1181
|
session: Record<string, any> & {
|
|
1182
1182
|
id: string;
|
|
@@ -1198,7 +1198,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1198
1198
|
image?: string | null | undefined;
|
|
1199
1199
|
};
|
|
1200
1200
|
};
|
|
1201
|
-
}
|
|
1201
|
+
}>>[];
|
|
1202
1202
|
body: z.ZodObject<{
|
|
1203
1203
|
redirect_uris: z.ZodArray<z.ZodURL>;
|
|
1204
1204
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -1365,7 +1365,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1365
1365
|
}, OAuthClient>;
|
|
1366
1366
|
getOAuthClient: import("better-call").StrictEndpoint<"/oauth2/get-client", {
|
|
1367
1367
|
method: "GET";
|
|
1368
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1368
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1369
1369
|
session: {
|
|
1370
1370
|
session: Record<string, any> & {
|
|
1371
1371
|
id: string;
|
|
@@ -1387,7 +1387,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1387
1387
|
image?: string | null | undefined;
|
|
1388
1388
|
};
|
|
1389
1389
|
};
|
|
1390
|
-
}
|
|
1390
|
+
}>>[];
|
|
1391
1391
|
query: z.ZodObject<{
|
|
1392
1392
|
client_id: z.ZodString;
|
|
1393
1393
|
}, z.core.$strip>;
|
|
@@ -1399,7 +1399,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1399
1399
|
}, OAuthClient>;
|
|
1400
1400
|
getOAuthClientPublic: import("better-call").StrictEndpoint<"/oauth2/public-client", {
|
|
1401
1401
|
method: "GET";
|
|
1402
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1402
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1403
1403
|
session: {
|
|
1404
1404
|
session: Record<string, any> & {
|
|
1405
1405
|
id: string;
|
|
@@ -1421,7 +1421,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1421
1421
|
image?: string | null | undefined;
|
|
1422
1422
|
};
|
|
1423
1423
|
};
|
|
1424
|
-
}
|
|
1424
|
+
}>>[];
|
|
1425
1425
|
query: z.ZodObject<{
|
|
1426
1426
|
client_id: z.ZodString;
|
|
1427
1427
|
}, z.core.$strip>;
|
|
@@ -1433,7 +1433,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1433
1433
|
}, OAuthClient>;
|
|
1434
1434
|
getOAuthClientPublicPrelogin: import("better-call").StrictEndpoint<"/oauth2/public-client-prelogin", {
|
|
1435
1435
|
method: "POST";
|
|
1436
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void
|
|
1436
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
|
|
1437
1437
|
body: z.ZodObject<{
|
|
1438
1438
|
client_id: z.ZodString;
|
|
1439
1439
|
oauth_query: z.ZodOptional<z.ZodString>;
|
|
@@ -1446,7 +1446,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1446
1446
|
}, OAuthClient>;
|
|
1447
1447
|
getOAuthClients: import("better-call").StrictEndpoint<"/oauth2/get-clients", {
|
|
1448
1448
|
method: "GET";
|
|
1449
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1449
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1450
1450
|
session: {
|
|
1451
1451
|
session: Record<string, any> & {
|
|
1452
1452
|
id: string;
|
|
@@ -1468,7 +1468,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1468
1468
|
image?: string | null | undefined;
|
|
1469
1469
|
};
|
|
1470
1470
|
};
|
|
1471
|
-
}
|
|
1471
|
+
}>>[];
|
|
1472
1472
|
metadata: {
|
|
1473
1473
|
openapi: {
|
|
1474
1474
|
description: string;
|
|
@@ -1520,7 +1520,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1520
1520
|
}, OAuthClient>;
|
|
1521
1521
|
updateOAuthClient: import("better-call").StrictEndpoint<"/oauth2/update-client", {
|
|
1522
1522
|
method: "POST";
|
|
1523
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1523
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1524
1524
|
session: {
|
|
1525
1525
|
session: Record<string, any> & {
|
|
1526
1526
|
id: string;
|
|
@@ -1542,7 +1542,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1542
1542
|
image?: string | null | undefined;
|
|
1543
1543
|
};
|
|
1544
1544
|
};
|
|
1545
|
-
}
|
|
1545
|
+
}>>[];
|
|
1546
1546
|
body: z.ZodObject<{
|
|
1547
1547
|
client_id: z.ZodString;
|
|
1548
1548
|
update: z.ZodObject<{
|
|
@@ -1581,7 +1581,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1581
1581
|
}, OAuthClient>;
|
|
1582
1582
|
rotateClientSecret: import("better-call").StrictEndpoint<"/oauth2/client/rotate-secret", {
|
|
1583
1583
|
method: "POST";
|
|
1584
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1584
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1585
1585
|
session: {
|
|
1586
1586
|
session: Record<string, any> & {
|
|
1587
1587
|
id: string;
|
|
@@ -1603,7 +1603,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1603
1603
|
image?: string | null | undefined;
|
|
1604
1604
|
};
|
|
1605
1605
|
};
|
|
1606
|
-
}
|
|
1606
|
+
}>>[];
|
|
1607
1607
|
body: z.ZodObject<{
|
|
1608
1608
|
client_id: z.ZodString;
|
|
1609
1609
|
}, z.core.$strip>;
|
|
@@ -1615,7 +1615,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1615
1615
|
}, OAuthClient>;
|
|
1616
1616
|
deleteOAuthClient: import("better-call").StrictEndpoint<"/oauth2/delete-client", {
|
|
1617
1617
|
method: "POST";
|
|
1618
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1618
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1619
1619
|
session: {
|
|
1620
1620
|
session: Record<string, any> & {
|
|
1621
1621
|
id: string;
|
|
@@ -1637,7 +1637,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1637
1637
|
image?: string | null | undefined;
|
|
1638
1638
|
};
|
|
1639
1639
|
};
|
|
1640
|
-
}
|
|
1640
|
+
}>>[];
|
|
1641
1641
|
body: z.ZodObject<{
|
|
1642
1642
|
client_id: z.ZodString;
|
|
1643
1643
|
}, z.core.$strip>;
|
|
@@ -1652,7 +1652,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1652
1652
|
query: z.ZodObject<{
|
|
1653
1653
|
id: z.ZodString;
|
|
1654
1654
|
}, z.core.$strip>;
|
|
1655
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1655
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1656
1656
|
session: {
|
|
1657
1657
|
session: Record<string, any> & {
|
|
1658
1658
|
id: string;
|
|
@@ -1674,7 +1674,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1674
1674
|
image?: string | null | undefined;
|
|
1675
1675
|
};
|
|
1676
1676
|
};
|
|
1677
|
-
}
|
|
1677
|
+
}>>[];
|
|
1678
1678
|
metadata: {
|
|
1679
1679
|
openapi: {
|
|
1680
1680
|
description: string;
|
|
@@ -1683,7 +1683,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1683
1683
|
}, OAuthConsent<Scope[]>>;
|
|
1684
1684
|
getOAuthConsents: import("better-call").StrictEndpoint<"/oauth2/get-consents", {
|
|
1685
1685
|
method: "GET";
|
|
1686
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1686
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1687
1687
|
session: {
|
|
1688
1688
|
session: Record<string, any> & {
|
|
1689
1689
|
id: string;
|
|
@@ -1705,7 +1705,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1705
1705
|
image?: string | null | undefined;
|
|
1706
1706
|
};
|
|
1707
1707
|
};
|
|
1708
|
-
}
|
|
1708
|
+
}>>[];
|
|
1709
1709
|
metadata: {
|
|
1710
1710
|
openapi: {
|
|
1711
1711
|
description: string;
|
|
@@ -1714,7 +1714,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1714
1714
|
}, OAuthConsent<Scope[]>[]>;
|
|
1715
1715
|
updateOAuthConsent: import("better-call").StrictEndpoint<"/oauth2/update-consent", {
|
|
1716
1716
|
method: "POST";
|
|
1717
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1717
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1718
1718
|
session: {
|
|
1719
1719
|
session: Record<string, any> & {
|
|
1720
1720
|
id: string;
|
|
@@ -1736,7 +1736,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1736
1736
|
image?: string | null | undefined;
|
|
1737
1737
|
};
|
|
1738
1738
|
};
|
|
1739
|
-
}
|
|
1739
|
+
}>>[];
|
|
1740
1740
|
body: z.ZodObject<{
|
|
1741
1741
|
id: z.ZodString;
|
|
1742
1742
|
update: z.ZodObject<{
|
|
@@ -1751,7 +1751,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1751
1751
|
}, OAuthConsent<Scope[]> | null>;
|
|
1752
1752
|
deleteOAuthConsent: import("better-call").StrictEndpoint<"/oauth2/delete-consent", {
|
|
1753
1753
|
method: "POST";
|
|
1754
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1754
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1755
1755
|
session: {
|
|
1756
1756
|
session: Record<string, any> & {
|
|
1757
1757
|
id: string;
|
|
@@ -1773,7 +1773,7 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1773
1773
|
image?: string | null | undefined;
|
|
1774
1774
|
};
|
|
1775
1775
|
};
|
|
1776
|
-
}
|
|
1776
|
+
}>>[];
|
|
1777
1777
|
body: z.ZodObject<{
|
|
1778
1778
|
id: z.ZodString;
|
|
1779
1779
|
}, z.core.$strip>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as canonicalizeOAuthQueryParams } from "./version-
|
|
1
|
+
import { r as canonicalizeOAuthQueryParams } from "./version-C5TN23gF.mjs";
|
|
2
2
|
import { isAPIError } from "better-auth/api";
|
|
3
3
|
import { verifyAccessToken } from "better-auth/oauth2";
|
|
4
4
|
import { APIError as APIError$1 } from "better-call";
|
|
@@ -42,6 +42,6 @@ function getSignedQueryIssuedAt(oauthQuery) {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/version.ts
|
|
45
|
-
const PACKAGE_VERSION = "1.6.
|
|
45
|
+
const PACKAGE_VERSION = "1.6.27";
|
|
46
46
|
//#endregion
|
|
47
47
|
export { postLoginClearedParam as a, getSignedQueryIssuedAt as i, buildSignedOAuthQuery as n, setSignedOAuthQueryParameterNames as o, canonicalizeOAuthQueryParams as r, signedQueryIssuedAtParam as s, PACKAGE_VERSION as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/oauth-provider",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.27",
|
|
4
4
|
"description": "An oauth provider plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
65
65
|
"listhen": "^1.9.0",
|
|
66
66
|
"tsdown": "0.22.7",
|
|
67
|
-
"@better-auth/core": "1.6.
|
|
68
|
-
"better-auth": "1.6.
|
|
67
|
+
"@better-auth/core": "1.6.27",
|
|
68
|
+
"better-auth": "1.6.27"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@better-auth/utils": "0.4.2",
|
|
72
72
|
"@better-fetch/fetch": "1.3.1",
|
|
73
|
-
"better-call": "1.
|
|
74
|
-
"@better-auth/core": "^1.6.
|
|
75
|
-
"better-auth": "^1.6.
|
|
73
|
+
"better-call": "1.4.0",
|
|
74
|
+
"@better-auth/core": "^1.6.27",
|
|
75
|
+
"better-auth": "^1.6.27"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "tsdown",
|