linkProfile

Connects a new profile (and new authentication method) to the current user.

Requires a connected in-app or ecosystem account.

When a profile is linked to the account, that profile can then be used to sign into the same account.

Example

import { linkProfile } from "thirdweb/wallets";
await linkProfile({ client, strategy: "discord" });
function linkProfile(args: AuthArgsType): Promise<Array<Profile>>;

Parameters

Type

let args: AuthArgsType;

Returns

let returnType: {
details: {
address?: Address;
email?: string;
id?: string;
phone?: string;
};
type: AuthOption;
};

A promise that resolves to the currently linked profiles when the connection is successful.