login

suspend fun login(username: String, password: String, redirectUri: String = "weconnect://authenticated")

Performs the headless OAuth authorization code flow against the VW identity service.

On success, tokens are persisted to the TokenStore and authState transitions to AuthState.LoggedIn.

Parameters

username

VW ID / We Connect email

password

VW ID password

Throws

on invalid credentials or unexpected server responses