CredentialProvider
Supplies runtime credentials to the SDK's authentication interceptors.
The SDK never stores or manages credentials itself. Implement this interface in your application and provide it via DI so that the interceptors can retrieve the current API user ID, API key, and access token on every request.
Implementations are responsible for storage (e.g. SharedPreferences, DataStore) and for any expiry logic.
Functions
Returns the current Bearer access token, or an empty string if not available or expired.
Returns the API user ID, or an empty string if not available.
Returns the callback URL attached as the X-Callback-Url header for a given transaction-initiation operation, or an empty string to send no callback header for that operation.
Returns the OAuth2 (consent) access token used to authenticate OAuth2 endpoints such as GET /{productType}/oauth2/{apiVersion}/userinfo, or an empty string if not available or expired.