Handle case of issuer field not ending with /

This commit is contained in:
Hugh Nimmo-Smith 2022-07-25 09:12:48 +01:00 committed by Quentin Gliech
parent da922220e2
commit 83843f62b1
No known key found for this signature in database
GPG Key ID: 22D62B84552719FC

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