This is an example app showing how to add/refresh credentials for permanent users. This project was bootstrapped with create-react-app.
Running this example application requires CLIENT_ID
and CLIENT_SECRET
which you can get by creating a developer account at Tink Console.
- Install dependencies
yarn
- 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>'
- Set variables in
.env.development
.
REACT_APP_TINK_LINK_PERMANENT_USERS_MARKET='<MARKET_CODE>'
- 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
.
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
.
For more information about permanent users please visit our documentation page.