From 4cb7985ac117d170a9bfc1b80cec85f82d0d15a2 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Mon, 12 Apr 2021 13:47:58 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20token=20pending=20statu?= =?UTF-8?q?s=20is=20now=20202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/api/mirage/config.js | 2 +- addons/auth/addon/authenticators/oidc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {