fix: double slash

This commit is contained in:
Dylan Vanmali
2025-12-24 10:53:07 -08:00
parent 4fb97a3933
commit 4eaa1a2f2e
3 changed files with 3 additions and 3 deletions
@@ -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 ??
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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`,