diff --git a/admin/app/authenticators/oidc.js b/admin/app/authenticators/oidc.js index 8d35fb2dc1a..35edb2433a8 100644 --- a/admin/app/authenticators/oidc.js +++ b/admin/app/authenticators/oidc.js @@ -4,7 +4,6 @@ import BaseAuthenticator from 'ember-simple-auth/authenticators/base'; import fetch from 'fetch'; import ENV from 'pix-admin/config/environment'; import { decodeToken } from 'pix-admin/helpers/jwt'; -import RSVP from 'rsvp'; export default class OidcAuthenticator extends BaseAuthenticator { @service session; @@ -47,7 +46,7 @@ export default class OidcAuthenticator extends BaseAuthenticator { const data = await response.json(); if (!response.ok) { - return RSVP.reject(data); + return Promise.reject(data); } const decodedAccessToken = decodeToken(data.access_token); @@ -61,7 +60,7 @@ export default class OidcAuthenticator extends BaseAuthenticator { } restore(data) { - return new RSVP.Promise((resolve, reject) => { + return new Promise((resolve, reject) => { if (!isEmpty(data['access_token'])) { resolve(data); }