accounts-frontend/packages/app/components/auth
ErickSkrauch be08857edc
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
2024-12-18 01:02:02 +01:00
..
acceptRules
activation
appInfo
authError Add E2E tests for device code grant flow. 2024-12-18 01:02:02 +01:00
chooseAccount
deviceCode Add E2E tests for device code grant flow. 2024-12-18 01:02:02 +01:00
finish
forgotPassword
login
mfa
password
permissions
recoverPassword
register
resendActivation
actions.test.ts
actions.ts Add E2E tests for device code grant flow. 2024-12-18 01:02:02 +01:00
auth.scss
Auth.story.tsx
AuthTitle.tsx
BaseAuthBody.tsx
Context.tsx
factory.tsx
helpLinks.scss
index.ts
PanelTransition.tsx
README.md
reducer.test.ts
reducer.ts
RejectionLink.tsx

How to add new auth panel

To add new panel you need to:

  • create panel component at components/auth/[panelId]
  • add new context in components/auth/PanelTransition
  • connect component to router in pages/auth/AuthPage
  • add new state to services/authFlow and coresponding test to tests/services/authFlow
  • connect state to authFlow. Update services/authFlow/AuthFlow.test and services/authFlow/AuthFlow.functional.test (the last one for some complex flow)
  • add new actions to components/auth/actions and api endpoints to services/api
  • whatever else you need

Commit id with example implementation: f4d315c