chore: 🤖 token pending status is now 202
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user