Vipps API Client
Component Detail
Infrastructure
medium complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
HTTP client configured for the Vipps MobilePay Login API (sandbox and production endpoints). Manages client credentials, constructs OIDC requests, and parses token responses including personnummer claims.
vipps-api-client
Responsibilities
- Configure base URLs for Vipps sandbox and production environments
- Perform token endpoint POST with client credentials and code verifier
- Fetch and cache the Vipps JWKS for ID token signature verification
- Parse and validate Vipps ID token claims including personnummer
Interfaces
postTokenRequest(params: TokenRequestParams): Promise<VippsTokenResponse>
fetchJwks(): Promise<JwkSet>
getDiscoveryDocument(): Promise<OidcDiscovery>