getSocialIcon

Gets the icon URI for a given social authentication provider

Example

const googleIcon = getSocialIcon("google");
const appleIcon = getSocialIcon("apple");
function getSocialIcon(
provider:
| "google"
| "apple"
| "facebook"
| "discord"
| "line"
| "x"
| "coinbase"
| "farcaster"
| "telegram"
| "github"
| "twitch"
| "steam"
| "guest"
| "email"
| "phone"
| "passkey"
| "wallet"
| ({} & string),
): string;

Parameters

The authentication provider to get the icon for

Type

let provider:
| "google"
| "apple"
| "facebook"
| "discord"
| "line"
| "x"
| "coinbase"
| "farcaster"
| "telegram"
| "github"
| "twitch"
| "steam"
| "guest"
| "email"
| "phone"
| "passkey"
| "wallet"
| ({} & string);

Returns

let returnType: string;

A data URI containing the SVG icon for the provider, or a generic wallet icon if the provider is not recognized