/tink-link-ios

Tink Link iOS SDK

Primary LanguageSwiftMIT LicenseMIT

Platform Languages

Tink Link iOS

Prerequisites

  1. Create your developer account at Tink Console
  2. Follow the getting started guide to retrieve your client_id and client_secret
  3. Add a deep link with scheme and host to your app (yourapp://host) to the list of redirect URIs under your app's settings

Requirements

  • iOS 10.0
  • Xcode 11.3

Installation

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.

Configuration

To start using Tink Link, you will need to configure a TinkLink instance with your client ID and redirect URI.

Swift

let configuration = try! TinkLink.Configuration(clientID: <#String#>, redirectURI: <#URL#>)
TinkLink.configure(with: configuration)

Environment Variables

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

Redirect Handling

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:

Examples

  • 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.

Developer Documentation