BankID Login Screen
Component Detail
User Interface
high complexity
mobile
1
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Presents the BankID authentication option on the login screen and manages the secure in-app browser flow for BankID OAuth redirection. Handles loading states during the OAuth redirect, displays error messages for failed authentication attempts, and provides a seamless return path after successful identity verification.
bankid-login-screen
Responsibilities
- Display BankID login button with proper branding and WCAG 2.2 AA compliance
- Launch secure in-app browser (flutter_web_auth) for BankID OAuth flow
- Handle deep-link callback from BankID provider and extract authorization code
- Display authentication progress, error states, and retry options
- Coordinate with BankID OAuth Service to complete the token exchange
Interfaces
initiateBankIdLogin()
handleOAuthCallback(callbackUri: Uri)
showAuthenticationProgress()
showAuthenticationError(error: AuthError)
onAuthenticationSuccess(user: User)
retryAuthentication()
navigateToAccountLinking()