mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
fix: double slash
This commit is contained in:
@@ -62,7 +62,7 @@ export const oauthProviderResourceClient = <T extends Auth | undefined>(
|
||||
opts?.jwksUrl ??
|
||||
jwtPluginOptions?.jwks?.remoteUrl ??
|
||||
(authServerBaseUrl
|
||||
? `${authServerBaseUrl + (authServerBasePath ?? "")}/${jwtPluginOptions?.jwks?.jwksPath ?? "jwks"}`
|
||||
? `${authServerBaseUrl + (authServerBasePath ?? "")}${jwtPluginOptions?.jwks?.jwksPath ?? "/jwks"}`
|
||||
: undefined);
|
||||
const introspectUrl =
|
||||
opts?.remoteVerify?.introspectUrl ??
|
||||
|
||||
@@ -38,7 +38,7 @@ export async function rpInitiatedLogoutEndpoint(
|
||||
const jwtPluginOptions = jwtPlugin?.options;
|
||||
const jwksUrl =
|
||||
jwtPluginOptions?.jwks?.remoteUrl ??
|
||||
`${baseURL}/${jwtPluginOptions?.jwks?.jwksPath ?? "jwks"}`;
|
||||
`${baseURL}${jwtPluginOptions?.jwks?.jwksPath ?? "/jwks"}`;
|
||||
|
||||
let clientId = client_id;
|
||||
if (!clientId) {
|
||||
|
||||
@@ -28,7 +28,7 @@ export function authServerMetadata(
|
||||
jwks_uri: overrides?.jwt_disabled
|
||||
? undefined
|
||||
: (opts?.jwks?.remoteUrl ??
|
||||
`${baseURL}/${opts?.jwks?.jwksPath ?? "jwks"}`),
|
||||
`${baseURL}${opts?.jwks?.jwksPath ?? "/jwks"}`),
|
||||
registration_endpoint: `${baseURL}/oauth2/register`,
|
||||
introspection_endpoint: `${baseURL}/oauth2/introspect`,
|
||||
revocation_endpoint: `${baseURL}/oauth2/revoke`,
|
||||
|
||||
Reference in New Issue
Block a user