AddCredentials

constructor(authorizationCode: String, market: String, scope: List<Scope> = emptyList(), locale: Locale = Locale.getDefault(), sessionId: String = "", inputProvider: String = "", inputUsername: String = "")

Parameters

authorizationCode

The created USER_AUTHORIZATION_CODE (see generating a user authorization code.

market

The market code for which providers should be listed.

scope

Scope A comma separated list of OAuth scopes. For adding more scopes, please refer to authorization-scopes.

locale

Locale Locale to be used for end-user facing text.

sessionId

Initialize Tink Link with a session to securely configure and pre-fill data in Tink Link. Learn more about using Tink Link sessions here.

inputProvider

The unique name of the provider (eg. sbab-bankid). If this is provided, the provider will be chosen for the user. If not, the user can choose the provider in a list. If the given parameter is not a valid provider, the user will see an error screen, so make sure you have the correct provider name from this endpoint.

inputUsername

Pre-fills the username field for supported providers. Providing this makes most sense if the username is a general username, valid for multiple banks (like a SSN).


constructor(authorizationCode: String, market: Market, scope: List<Scope> = emptyList(), locale: Locale = Locale.getDefault(), sessionId: String = "", inputProvider: String = "", inputUsername: String = "")

Deprecated

Use the constructor with 'market: String' instead.