Wallet.connect
When a profile is linked to the account, that profile can then be used to sign into the account.
This method is only available for in-app wallets.
const wallet = inAppWallet(); await wallet.connect({ strategy: "google" });const profiles = await linkProfile(wallet, { strategy: "discord" });
function linkProfile( wallet: Wallet<"inApp">, auth: MultiStepAuthArgsType | SingleStepAuthArgsType,): Promise<Array<Profile>>;
The wallet to link an additional profile to.
let wallet: Wallet<"inApp">;
The authentications options to add the new profile.
let auth: MultiStepAuthArgsType | SingleStepAuthArgsType;
let returnType: Promise<Array<Profile>>;
A promise that resolves to the currently linked profiles when the connection is successful.