- Follow the getting started guide to create your developer account and retrieve your Client ID.
- Register the Redirect URI for your app (e.g.
myapp://callback
orhttps://myapp.com/callback
) in the list of allowed redirect URIs in console.tink.com.
- Make sure
jcenter()
is added to your repositories (it should be by default).
allprojects {
repositories {
jcenter()
...
}
}
- Add dependency on the latest version:
dependencies {
implementation "com.tink:link:<version>"
}
- Optional: Verify artifact checksums
The SHA-256 checksums can be found in the corresponding release.
- 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.
- Initialize Tink in your Application
Tink.init(config, applicationContext)
- Usage Examples This section outlines how to use the different classes and types provided with Tink Link.