Skip to main content
POST
/
connect
/
sessions
/
reauthenticate
JavaScript
import Finch from '@tryfinch/finch-api';

const client = new Finch({
  clientId: '4ab15e51-11ad-49f4-acae-f343b7794375',
  clientSecret: 'My Client Secret',
});

const response = await client.connect.sessions.reauthenticate({
  connection_id: 'connection_id',
  minutes_to_expire: 0,
  products: ['benefits'],
  redirect_uri: 'https://example.com',
});

console.log(response.session_id);
{
  "session_id": "550e8400-e29b-41d4-a716-446655440000",
  "connect_url": "https://connect.tryfinch.com/authorize?session=550e8400-e29b-41d4-a716-446655440000"
}
NOTE: The connect session uses Basic Auth; in the sample request above use client_id as the username and client_secret as a password. For example: Authorization: Basic <base64 encoded client_id:client_secret>

Authorizations

Authorization
string
header
required

Please use base64 encoded client_id:client_secret

Body

application/json
redirect_uri
string<uri> | null
required

The URI to redirect to after the Connect flow is completed

minutes_to_expire
integer
required

The number of minutes until the session expires (defaults to 43,200, which is 30 days)

products
enum<string>[] | null
required

The products to request access to (optional for reauthentication)

connection_id
string
required

The ID of the existing connection to reauthenticate

Response

Created

session_id
string
required

The unique identifier for the created connect session

connect_url
string<uri>
required

The Connect URL to redirect the user to for reauthentication