Tink Link Android SDK

Prerequisites

  1. Follow the getting started guide to create your developer account and retrieve your Client ID.
  2. Register the Redirect URI for your app (e.g. myapp://callback or https://myapp.com/callback) in the list of allowed redirect URIs in console.tink.com.

Installation

  1. Make sure jcenter() is added to your repositories (it should be by default).
allprojects {
    repositories {
       jcenter()
       ...
    }
}
  1. Add dependency on the latest version:

GitHub release (latest SemVer)

dependencies {
    implementation "com.tink:link:<version>"
}
  1. Optional: Verify artifact checksums

The SHA-256 checksums can be found in the corresponding release.

Initialization

  1. Set up a configuration object with your specifics:
val config = 
    TinkConfiguration(
        environment = Environment.Production, // Or define your own environment
        oAuthClientId = "yourKey", // Your clientId. Retrieve it from console.tink.com,
        redirectUri = "https://localhost:3000/callback" // [1]
    )

[1] Note: You need to add a custom URL scheme or supported web URLS to handle redirects from a third party authentication flow back into your app. This should be the same redirect URI that is registered in the list of allowed redirect URIs. Follow the third party authentication guide to set this up.

  1. Initialize Tink in your Application
Tink.init(config, applicationContext)

Examples

  • Usage Examples This section outlines how to use the different classes and types provided with Tink Link.

Developer documentation