POST
/
connect
/
sessions
/
reauthenticate
import Finch from '@tryfinch/finch-api';

const client = new Finch({
  clientId: process.env['FINCH_CLIENT_ID'], // This is the default and can be omitted
  clientSecret: process.env['FINCH_CLIENT_SECRET'], // This is the default and can be omitted
});

async function main() {
  const response = await client.connect.sessions.reauthenticate({ connection_id: 'connection_id' });

  console.log(response.session_id);
}

main();
{
  "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

Response

201
application/json

Created

The response is of type object.