Skip to Content
Anuma SDKClientInternalFunctionspostApiV1ConnectorsImport

postApiV1ConnectorsImport

postApiV1ConnectorsImport<ThrowOnError>(options: Options<PostApiV1ConnectorsImportData, ThrowOnError>): RequestResult<PostApiV1ConnectorsImportResponses, PostApiV1ConnectorsImportErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:792 

Import a browser-resident refresh token into the vault

Silent-migration entry point for users with existing browser-resident OAuth tokens. The portal verifies the refresh token against the upstream provider (capturing any rotation) and persists it in connector_credentials only if no active row exists. Invalid tokens return 400 invalid_grant; the client should clear localStorage and prompt the user to reconnect.

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<PostApiV1ConnectorsImportData, ThrowOnError>

Returns

RequestResult<PostApiV1ConnectorsImportResponses, PostApiV1ConnectorsImportErrors, ThrowOnError>

Last updated on