mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
check for ok
This commit is contained in:
parent
d7b63ac552
commit
98b0ccd0d2
@ -1645,6 +1645,9 @@ export class _StackClientAppImplIncomplete<HasTokenStore extends boolean, Projec
|
||||
}),
|
||||
}, null);
|
||||
|
||||
if (!pollResponse.ok) {
|
||||
return Result.error(new KnownErrors.CliAuthError(`Failed to initiate CLI auth: ${response.status} ${await response.text()}`));
|
||||
}
|
||||
const pollResult = await pollResponse.json();
|
||||
|
||||
if (pollResponse.status === 201 && pollResult.status === "success") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user