Skip to content

Commit 99d0f6a

Browse files
committed
use error helper
1 parent e8bbb3e commit 99d0f6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎oidc-client.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ OidcClient.prototype.loadUserProfile = function (access_token) {
203203
return this.loadMetadataAsync().then(function (metadata) {
204204

205205
if (!metadata.userinfo_endpoint) {
206-
return _promiseFactory.reject(Error("Metadata does not contain userinfo_endpoint"));
206+
return error("Metadata does not contain userinfo_endpoint");
207207
}
208208

209209
return getJson(metadata.userinfo_endpoint, access_token);

0 commit comments

Comments
 (0)