chore: 🤖 token pending status is now 202

This commit is contained in:
Randall Morey committed 2021-04-12 13:47:58 -04:00
1 parent 5105d80a9d
commit 4cb7985ac1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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) {