Update auth.ts
This commit is contained in:
parent
abcf91b463
commit
c5fcba4617
1 changed files with 2 additions and 2 deletions
|
|
@ -320,8 +320,8 @@ async function fetchWithCorsRetry(
|
|||
/**
|
||||
* Constructs the well-known path for OAuth metadata discovery
|
||||
*/
|
||||
function buildWellKnownPath(wellKnownPath: string, pathname: string): string {
|
||||
let wellKnownPath = `/.well-known/${wellKnownPath}${pathname}`;
|
||||
function buildWellKnownPath(wellKnownPrefix: string, pathname: string): string {
|
||||
let wellKnownPath = `/.well-known/${wellKnownPrefix}${pathname}`;
|
||||
if (pathname.endsWith('/')) {
|
||||
// Strip trailing slash from pathname to avoid double slashes
|
||||
wellKnownPath = wellKnownPath.slice(0, -1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue