Handle case of issuer field not ending with /

This commit is contained in:
Hugh Nimmo-Smith 2022-07-25 09:12:48 +01:00
parent a5ef671f46
commit 778900d0b2

View File

@ -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() {