createCredentialDataSource

Initializes a credential data source using the OidcClient.

Receiver

the OidcClient used to perform the low level OIDC requests, as well as with which to use the configuration from.

Parameters

storage

the TokenStorage used to persist Tokens.


fun OidcClient.createCredentialDataSource(context: Context): CredentialDataSource

Initializes a credential data source using the OidcClient.

Receiver

the OidcClient used to perform the low level OIDC requests, as well as with which to use the configuration from.

Parameters

context

the Context used to access Android Shared Preferences and crypto primitives to persist Tokens.