Skip to content

Commit 98bd8fc

Browse files
Update src/ProvidersCache.js
Co-authored-by: Ruben Verborgh <[email protected]>
1 parent 608ae8a commit 98bd8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProvidersCache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ProvidersCache {
5858
* @returns {Promise}
5959
*/
6060
discover (issuer) {
61-
return fetch(`${issuer}${issuer.endsWith('/') ? '' : '/'}.well-known/openid-configuration`)
61+
return fetch(issuer.replace(/\/*$/, '/.well-known/openid-configuration')
6262
//.then(validateStatus)
6363
.then(response => response.json())
6464
}

0 commit comments

Comments
 (0)