Add E2E tests for device code grant flow.

Handle more errors for device code.
Dispatch a BSOD for an any unhandled exception from auth flow state
This commit is contained in:
ErickSkrauch
2024-12-17 23:11:39 +01:00
parent b0975f0b0f
commit be08857edc
20 changed files with 267 additions and 176 deletions

View File

@@ -30,7 +30,7 @@ export default class LoginState extends AbstractState {
login: string;
},
): Promise<void> | void {
context
return context
.run('login', payload)
.then(() => context.setState(new PasswordState()))
.catch((err = {}) => err.errors || logger.warn('Error validating login', err));