tink-ab / tink-link-web-permanent-users-example

An example web app demonstrating how to refresh/add credentials to a permanent user.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tink Link web permanent users example

This is an example app showing how to add/refresh credentials for permanent users. This project was bootstrapped with create-react-app.

Installation

Running this example application requires CLIENT_ID and CLIENT_SECRET which you can get by creating a developer account at Tink Console.

Running the app locally

  1. Install dependencies
yarn
  1. Set your client identifier and client secret as environment variables.
export REACT_APP_TINK_LINK_PERMANENT_USERS_CLIENT_ID='<YOUR_CLIENT_ID>'
export TINK_LINK_PERMANENT_USERS_CLIENT_SECRET='<YOUR_CLIENT_SECRET>'
  1. Set variables in .env.development.
REACT_APP_TINK_LINK_PERMANENT_USERS_MARKET='<MARKET_CODE>'
  1. Run client and server in terminal separately
yarn start:client
yarn start:server

The client app is available at http://localhost:3000. The server is running at http://localhost:8080.

Optional

If you want to be able to initiate payments, you need to generate a paymentRequestId following this guide and set it as REACT_APP_TINK_LINK_PERMANENT_PAYMENT_REQUEST_ID in .env.development.

Resources

For more information about permanent users please visit our documentation page.

About

An example web app demonstrating how to refresh/add credentials to a permanent user.

License:MIT License


Languages

Language:TypeScript 71.2%Language:JavaScript 17.4%Language:CSS 7.3%Language:HTML 4.1%