linkCrossAppAccount
method from the useCrossAppAccounts
hook:linkCrossAppAccount
is invoked, the user will be redirected to a page hosted on the domain of the provider app you specified to authorize access to your own app.If the user successfully authorizes access, the user will be redirected back to your app, and an account of type: 'cross_app'
will be added to the linkedAccounts
array of their user
object.linkCrossAppAccount
will throw an error if:authenticated
and thus cannot link an account from the provider app to an existing account within your requester’s app.