@better-auth/oauth-provider 1.6.32 → 1.6.33
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-C5Ss3rSz.d.mts → oauth-BKBfQqDs.d.mts} +3 -3
- package/dist/{utils-zUEnkFTj.mjs → utils-Cdzs0w5-.mjs} +1 -1
- package/dist/{version-Wiw_XvhA.mjs → version-Dgk04Er4.mjs} +1 -1
- package/package.json +5 -5
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-Cdzs0w5-.mjs";
|
|
2
|
+
import { t as PACKAGE_VERSION } from "./version-Dgk04Er4.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-Dgk04Er4.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-D74mBkw6.mjs";
|
|
2
|
-
import { n as oauthProvider, t as getOAuthProviderState } from "./oauth-
|
|
2
|
+
import { n as oauthProvider, t as getOAuthProviderState } from "./oauth-BKBfQqDs.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-Cdzs0w5-.mjs";
|
|
2
|
+
import { a as postLoginClearedParam, i as getSignedQueryIssuedAt, o as setSignedOAuthQueryParameterNames, r as canonicalizeOAuthQueryParams, s as signedQueryIssuedAtParam, t as PACKAGE_VERSION } from "./version-Dgk04Er4.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";
|
|
@@ -840,9 +840,9 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
840
840
|
software_statement: z.ZodOptional<z.ZodString>;
|
|
841
841
|
post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
842
842
|
token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
843
|
-
none: "none";
|
|
844
843
|
client_secret_basic: "client_secret_basic";
|
|
845
844
|
client_secret_post: "client_secret_post";
|
|
845
|
+
none: "none";
|
|
846
846
|
}>>>;
|
|
847
847
|
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
848
848
|
authorization_code: "authorization_code";
|
|
@@ -1013,9 +1013,9 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1013
1013
|
software_statement: z.ZodOptional<z.ZodString>;
|
|
1014
1014
|
post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1015
1015
|
token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1016
|
-
none: "none";
|
|
1017
1016
|
client_secret_basic: "client_secret_basic";
|
|
1018
1017
|
client_secret_post: "client_secret_post";
|
|
1018
|
+
none: "none";
|
|
1019
1019
|
}>>>;
|
|
1020
1020
|
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1021
1021
|
authorization_code: "authorization_code";
|
|
@@ -1217,9 +1217,9 @@ declare const oauthProvider: <O extends OAuthOptions<Scope[]>>(options: O) => {
|
|
|
1217
1217
|
software_statement: z.ZodOptional<z.ZodString>;
|
|
1218
1218
|
post_logout_redirect_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1219
1219
|
token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1220
|
-
none: "none";
|
|
1221
1220
|
client_secret_basic: "client_secret_basic";
|
|
1222
1221
|
client_secret_post: "client_secret_post";
|
|
1222
|
+
none: "none";
|
|
1223
1223
|
}>>>;
|
|
1224
1224
|
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1225
1225
|
authorization_code: "authorization_code";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as canonicalizeOAuthQueryParams } from "./version-
|
|
1
|
+
import { r as canonicalizeOAuthQueryParams } from "./version-Dgk04Er4.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.33";
|
|
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.33",
|
|
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.21.10",
|
|
67
|
-
"@better-auth/core": "1.6.
|
|
68
|
-
"better-auth": "1.6.
|
|
67
|
+
"@better-auth/core": "1.6.33",
|
|
68
|
+
"better-auth": "1.6.33"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@better-auth/utils": "0.4.2",
|
|
72
72
|
"@better-fetch/fetch": "1.3.1",
|
|
73
73
|
"better-call": "1.4.0",
|
|
74
|
-
"@better-auth/core": "^1.6.
|
|
75
|
-
"better-auth": "^1.6.
|
|
74
|
+
"@better-auth/core": "^1.6.33",
|
|
75
|
+
"better-auth": "^1.6.33"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "tsdown",
|