AuthProvider

interface AuthProvider

Contract for providing a valid OAuth bearer token.

The default implementation is rsdev.ovh.weconnect.auth.AuthManager, which handles the full VW identity login flow, token refresh, and silent re-login.

Inheritors

Properties

Link copied to clipboard
abstract val authState: StateFlow<AuthState>

Reactive stream of authentication state changes.

Functions

Link copied to clipboard
abstract suspend fun ensureValidToken(): String

Returns a valid access token, refreshing or re-authenticating if necessary.