We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608ae8a commit 98bd8fcCopy full SHA for 98bd8fc
src/ProvidersCache.js
@@ -58,7 +58,7 @@ class ProvidersCache {
58
* @returns {Promise}
59
*/
60
discover (issuer) {
61
- return fetch(`${issuer}${issuer.endsWith('/') ? '' : '/'}.well-known/openid-configuration`)
+ return fetch(issuer.replace(/\/*$/, '/.well-known/openid-configuration')
62
//.then(validateStatus)
63
.then(response => response.json())
64
}
0 commit comments