diff --git a/addons/api/mirage/config.js b/addons/api/mirage/config.js index 243467bc7..769e7e810 100644 --- a/addons/api/mirage/config.js +++ b/addons/api/mirage/config.js @@ -69,7 +69,7 @@ export default function () { if (scope.primaryAuthMethodId === id) { scope.update({ primaryAuthMethodId: null }); } - return new Response(204); + return new Response(202); }); // Auth Method Accounts diff --git a/addons/auth/addon/authenticators/oidc.js b/addons/auth/addon/authenticators/oidc.js index adfb03639..2de7f1184 100644 --- a/addons/auth/addon/authenticators/oidc.js +++ b/addons/auth/addon/authenticators/oidc.js @@ -90,7 +90,7 @@ export default class OIDCAuthenticator extends BaseAuthenticator { }); // Fetch the endpoint and get the response JSON const response = await fetch(url, { method: 'post', body }); - if (response.status === 204) { + if (response.status === 202) { // The token isn't ready yet, keep trying. return false; } else if (response.status < 400) {