Service Layer high complexity mobile
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Orchestrates the BankID OAuth2/OIDC authentication flow end-to-end. Builds the authorization URL, handles token exchange via the BankID API Gateway, validates the ID token, and persists the resulting Supabase session via the Auth Token Repository.

Feature: BankID & Vipps Authentication

bankid-integration-service

Responsibilities

  • Build BankID authorization URL with correct redirect URI and scopes
  • Exchange authorization code for access and ID tokens via BankID gateway
  • Validate and parse the BankID ID token claims
  • Map verified BankID identity to Supabase user and persist session

Interfaces

buildAuthorizationUrl()
exchangeCodeForTokens(code, codeVerifier)
validateIdToken(idToken)
createOrLinkSupabaseUser(claims)
handleProviderError(error)
revokeTokens(accessToken)

Related Data Entities (2)

Data entities managed by this component