- Create your developer account at Tink Console
- Follow the getting started guide to retrieve your
client_id
andclient_secret
- Add a deep link with scheme and host to your app (
yourapp://host
) to the list of redirect URIs under your app's settings
- iOS 10.0
- Xcode 11.3
Swift Package Manager is used to integrate Tink Link into your project.
Follow these instructions to link a target to a package product and enter this URL https://github.com/tink-ab/tink-link-sdk-ios
when asked for a package repository.
When finished, you should be able to import TinkLinkSDK
within your project.
To start using Tink Link, you will need to configure a TinkLink
instance with your client ID and redirect URI.
let configuration = try! TinkLink.Configuration(clientID: <#String#>, redirectURI: <#URL#>)
TinkLink.configure(with: configuration)
The shared instance of TinkLink can also be configured using environment variables defined in your application's target run scheme.
Key | Value |
---|---|
TINK_CLIENT_ID |
String |
TINK_REDIRECT_URI |
String |
TINK_CUSTOM_GRPC_ENDPOINT |
Optional |
TINK_CUSTOM_REST_ENDPOINT |
Optional |
TINK_GRPC_CERTIFICATE_URL |
Optional |
TINK_REST_CERTIFICATE_URL |
Optional |
You will need to add a custom URL scheme or support universal links to handle redirects from a third party authentication flow back into your app.
Follow the instructions at one of these links for how to set this up:
- Usage Examples This document outlines how to use the different classes and types provided by Tink Link.
- Provider Selection This example shows how to build a complete aggregation flow using Tink Link.