loginWithCrossAppAccount
method from the useCrossAppAccounts
hook:loginWithCrossAppAccount
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.loginWithCrossAppAccount
will throw an error if:appId
you specify in
loginWithCrossAppAccount
, they will not have to login again and will only have to consent to
sharing access to that account in your app."privy:"
+ the provider’s app ID to loginMethodsAndOrder
in the Privy SDK configuration.