From 778900d0b27d08569e01e057544d8d9ae8f8dc9c Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 25 Jul 2022 09:12:48 +0100 Subject: [PATCH] Handle case of issuer field not ending with / --- src/matrix/net/OidcApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/net/OidcApi.ts b/src/matrix/net/OidcApi.ts index 832c94e7..1d0db462 100644 --- a/src/matrix/net/OidcApi.ts +++ b/src/matrix/net/OidcApi.ts @@ -90,7 +90,7 @@ export class OidcApi { } get metadataUrl() { - return new URL(WELL_KNOWN, this._issuer).toString(); + return new URL(WELL_KNOWN, `${this._issuer}${this._issuer.endsWith('/') ? '' : '/'}`).toString(); } get issuer() {