link
Thelink function opens the widget to a specified connector and flow. If the tenant has not yet linked their credentials, it prompts them to connect. If they have already saved their credentials, it directs them to the connector management screen.
Signature:
Parameters:
- tenantId:
string - connectorId:
string - flowId:
string - tenantMetadata:
record<string, any>?- (optional): Sets metadata for the tenant.
- connectValues:
record<string, any>?- (optional): Prefills the connection form with specific values.
- closeAfterLink:
boolean?- (optional): Closes the widget after a successful link.
- hideBackButtons:
boolean?- (optional): Hides back navigation buttons during the connection flow. See hideBackButtons for all supported surfaces.