Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/slick-cups-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Adds TikTok as a new authentication method for In-App and Ecosystem Wallets.
1 change: 1 addition & 0 deletions apps/dashboard/src/@/api/team/ecosystems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type AuthOption =
| "google"
| "facebook"
| "x"
| "tiktok"
| "discord"
| "farcaster"
| "telegram"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const authOptions = [
"google",
"facebook",
"x",
"tiktok",
"discord",
"farcaster",
"telegram",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const authMethodsToPickFrom: InAppWalletAuth[] = [
"discord",
"line",
"x",
"tiktok",
"coinbase",
"farcaster",
"telegram",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const allInAppWalletLoginMethods: InAppWalletAuth[] = [
"phone",
"line",
"x",
"tiktok",
"facebook",
"apple",
"coinbase",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Create an instance of `EcosystemWallet` using a user's email, phone number or OA
Ecosystem Wallets support a variety of login methods:
- Email (OTP Login)
- Phone (OTP Login)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam etc.)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam, TikTok etc.)
- Custom Auth (OIDC Compatible)
- Custom Auth (Generic Auth Endpoint)
- Guest (Onboard easily, link other accounts later)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Create an instance of `InAppWallet` using a user's email, phone number or OAuth.
In-App Wallets support a variety of login methods:
- Email (OTP Login)
- Phone (OTP Login)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam etc.)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam, TikTok etc.)
- Custom Auth (OIDC Compatible)
- Custom Auth (Generic Auth Endpoint)
- Guest (Onboard easily, link other accounts later)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Ecosystem Wallets have a very similar API to the [In-App Wallet](/unity/v5/walle
Ecosystem Wallets support a variety of login methods:
- Email (OTP Login)
- Phone (OTP Login)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam etc.)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam, TikTok etc.)
- Custom Auth (OIDC Compatible)
- Custom Auth (Generic Auth Endpoint)
- Guest (Onboard easily, link other accounts later)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It makes for a fantastic [SmartWallet](/unity/v5/wallets/account-abstraction) ad
In-App Wallets support a variety of login methods:
- Email (OTP Login)
- Phone (OTP Login)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam etc.)
- Socials (Google, Apple, Facebook, Telegram, Farcaster, Line, Github, Twitch, Steam, TikTok etc.)
- Custom Auth (OIDC Compatible)
- Custom Auth (Generic Auth Endpoint)
- Guest (Onboard easily, link other accounts later)
Expand Down
1 change: 1 addition & 0 deletions apps/portal/src/components/Document/AuthList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const authOptions: InAppWalletAuth[] = [
"apple",
"facebook",
"x",
"tiktok",
"discord",
"telegram",
"twitch",
Expand Down
4 changes: 4 additions & 0 deletions packages/thirdweb/src/react/core/utils/walletIcon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ describe("walletIcon", () => {
expect(getSocialIcon("x")).toBe(socialIcons.x);
});

it("should return tiktok icon", () => {
expect(getSocialIcon("tiktok")).toBe(socialIcons.tiktok);
});

it("should return farcaster icon", () => {
expect(getSocialIcon("farcaster")).toBe(socialIcons.farcaster);
});
Expand Down
5 changes: 5 additions & 0 deletions packages/thirdweb/src/react/core/utils/walletIcon.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
PHONE_ICON,
STEAM_ICON,
TELEGRAM_ICON,
TIKTOK_ICON,
TWITCH_ICON,
WALLET_ICON,
X_ICON,
Expand Down Expand Up @@ -103,6 +104,8 @@ export function getAuthProviderImage(authProvider: string | null): string {
return LINE_ICON;
case "x":
return X_ICON;
case "tiktok":
return TIKTOK_ICON;
case "farcaster":
return FARCASTER_ICON;
case "telegram":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
LINE_ICON,
STEAM_ICON,
TELEGRAM_ICON,
TIKTOK_ICON,
TWITCH_ICON,
X_ICON,
} from "../icons/svgs.js";
Expand Down Expand Up @@ -67,6 +68,7 @@ const socialIcons = {
telegram: TELEGRAM_ICON,
twitch: TWITCH_ICON,
x: X_ICON,
tiktok: TIKTOK_ICON,
};

type InAppWalletFormUIProps = {
Expand Down
18 changes: 18 additions & 0 deletions packages/thirdweb/src/react/native/ui/icons/svgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,24 @@ export const X_ICON = `<svg width="320" height="320" viewBox="0 0 320 320" fill=
<path d="M177.315 145.335L245.068 67H229.013L170.182 135.017L123.195 67H69L140.055 169.854L69 252H85.0563L147.183 180.172L196.805 252H251L177.311 145.335H177.315ZM155.323 170.76L148.124 160.518L90.8417 79.022H115.503L161.731 144.792L168.93 155.034L229.02 240.525H204.359L155.323 170.764V170.76Z" fill="white"/>
</svg>`;

export const TIKTOK_ICON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1200" xml:space="preserve">
<path d="M636 1201c-23.02 0-46.042 0-69.697-.408-9.794-1.135-18.996-1.518-28.101-2.665-16.424-2.067-32.96-3.775-49.14-7.126-21.696-4.494-43.236-9.907-64.589-15.842-24.26-6.743-47.645-16.02-70.577-26.48-26.226-11.963-51.913-24.964-75.798-41.098-18.746-12.663-37.057-26.04-54.899-39.948-13.55-10.563-26.729-21.791-38.866-33.93-16.19-16.19-31.658-33.162-46.582-50.532-10.965-12.762-21.21-26.265-30.597-40.23-11.379-16.925-22.178-34.321-32.01-52.185-10.136-18.42-19.628-37.295-27.917-56.608-10.741-25.025-19.931-50.724-26.214-77.307-4.592-19.427-9.298-38.863-12.813-58.499-2.666-14.892-3.5-30.11-5.272-45.167C2.804 651.922 1.666 650.989 1 650c0-.444 0-.889.399-1.82.133-3.718-.133-6.95-.399-10.18 0-24.354 0-48.708.399-73.685.133-3.853-.133-7.084-.399-10.315 0-.444 0-.889.391-1.79.795-1.138 1.485-1.789 1.56-2.503.74-7.156 1.246-14.338 2.08-21.482 1.228-10.5 2.029-21.107 4.163-31.43 3.81-18.426 8.303-36.717 12.827-54.986 7.885-31.84 19.404-62.467 33.213-92.111 15.375-33.007 33.353-64.584 54.523-94.385 16.364-23.036 34.177-44.8 53.217-65.565 9.735-10.617 20.589-20.213 31.01-30.195 17.23-16.506 35.882-31.25 55.142-45.33 21.897-16.009 44.647-30.678 68.73-43.01 20.828-10.668 42.118-20.665 63.9-29.177 21.745-8.498 44.171-15.426 66.636-21.863 23.921-6.854 48.354-11.728 73.19-14.18 13.824-1.365 27.658-2.65 41.482-4.024 1-.1 1.958-.636 2.936-.969 23.02 0 46.042 0 69.697.408 9.797 1.135 19.003 1.513 28.111 2.666 16.264 2.06 32.634 3.789 48.657 7.113 21.86 4.536 43.576 9.936 65.1 15.883 24.28 6.71 47.641 16.069 70.607 26.474 25.976 11.77 51.082 25.118 75.15 40.36 32.09 20.324 61.967 43.626 89.55 69.698 13.695 12.945 26.62 26.796 39.004 41.012 12.49 14.339 24.027 29.523 35.715 44.544 16.174 20.787 29.734 43.324 42.177 66.442 19.589 36.397 35.554 74.418 47.076 114.153 4.741 16.352 8.538 33.01 12.039 49.68 2.925 13.93 5.164 28.033 7.024 42.15 1.815 13.768 2.75 27.652 4.124 41.48.1 1.001.636 1.96.969 2.937 0 23.02 0 46.042-.408 69.697-1.135 9.797-1.513 19.003-2.666 28.111-2.06 16.264-3.817 32.626-7.107 48.659-4.458 21.721-9.613 43.347-15.616 64.691-7.163 25.472-16.875 50.11-28 74.127-11.978 25.858-25.473 50.926-40.918 74.893a598.5 598.5 0 0 1-67.89 86.69c-12.933 13.705-26.792 26.624-41.008 39.007-14.34 12.491-29.523 24.028-44.545 35.716-20.786 16.174-43.323 29.734-66.442 42.177-36.397 19.589-74.418 35.554-114.153 47.076-16.352 4.741-33.01 8.538-49.68 12.039-13.93 2.925-28.034 5.164-42.15 7.025-13.768 1.814-27.652 2.748-41.48 4.123-1.001.1-1.96.636-2.937.969m179.934-855.948s-.024.087.04-.643c-1.288-1.67-2.63-3.3-3.858-5.014-9.688-13.519-17.965-27.82-24.114-43.317-6.333-15.96-10.648-32.397-12.004-49.556-.504-6.367-1-12.733-1.52-19.373-11.75 0-23.52 0-35.436-.185 0 0-.186-.146-.463-.886l-3.492-32.856H600v6.085c0 177.079-.017 354.157.029 531.236.004 15.602-3.893 30.314-10.476 44.184-11.668 24.58-29.91 42.805-54.753 54.333-23.586 10.945-47.958 13.654-73.132 7.113-8.04-2.089-15.788-5.306-24.265-8.253-.8-.695-1.6-1.39-2.422-2.79-26.17-40.707-28.596-83.111-2.248-123.477 30.059-46.051 74.249-61.208 127.89-47.878V515.307c-13.05-.393-25.742-.776-38.58-1.343 0 0-.187-.145-.058-1.05V481.49c-11.386-.504-22.53-1.623-33.636-1.333-14.45.376-29.038.845-43.264 3.147-17.186 2.781-33.887 7.878-50.142 14.54-27.694 11.35-52.639 26.837-74.434 47.277-7.485 7.02-14.475 14.604-21.309 22.272-11.064 12.415-20.237 26.187-28.242 40.764-11.36 20.685-19.97 42.481-24.678 65.555-2.765 13.548-3.827 27.469-5.173 41.269-.627 6.432-.44 12.997-.035 19.465.76 12.115 1.029 24.367 3.142 36.27 4.862 27.378 13.983 53.374 27.8 77.658 14.64 25.73 33.024 48.343 55.525 67.563 3.901 3.332 8.331 6.046 12.489 9.034 0 0-.013-.027.04.56.59.49 1.178.981 2.058 2.111 2.29 1.842 4.581 3.683 7.092 6.08.642.4 1.284.798 1.843 1.23 0 0 .012-.088.07.601 12.774 10.521 25.01 21.794 38.443 31.39 21.08 15.056 44.63 25.435 69.53 32.61 18.43 5.312 37.312 8.363 56.415 9.32 18.471.927 36.867-.568 55.145-3.795 27.01-4.77 52.449-13.707 76.404-27.059 26.103-14.548 48.825-33.126 68.297-55.807 12.829-14.944 24.21-30.913 32.525-48.702 6.58-14.08 12.012-28.762 17.03-43.491 6.907-20.265 9.805-41.48 9.903-62.731.417-90.143.177-180.288.177-270.433v-6.744c56.65 38.92 118.038 58.966 185.743 58.985v-134.52c-8.586-.876-16.904-1.676-25.209-2.595-4.524-.5-9.025-1.203-14.08-2.025-.206-.317-.413-.635-.226-1.719v-27.745c-7.818-.82-15.788-1.66-23.759-2.489-13.918-1.446-27.44-4.758-40.306-10.105-11.017-4.578-21.605-10.19-32.466-15.474 0 0-.234-.2-.664-.823a21 21 0 0 1-2.68-.732c-1.173-1.288-2.346-2.577-3.53-4.487-.659-.435-1.318-.87-1.889-1.33" style="--darkreader-inline-fill:var(--darkreader-background-000000, #000000);--darkreader-inline-stroke:none;visibility:visible;opacity:1" data-index="0"/>
<path fill="#FFF" d="M1 554.454c.266 2.777.532 6.008.399 9.392C1 560.97 1 557.94 1 554.454" style="--darkreader-inline-fill:var(--darkreader-text-ffffff, #e8e6e3);--darkreader-inline-stroke:none;visibility:visible" data-index="5"/>
<path fill="#FFF" d="M1 638.454c.266 2.777.532 6.008.399 9.392C1 644.97 1 641.94 1 638.454" style="--darkreader-inline-fill:var(--darkreader-text-ffffff, #e8e6e3);--darkreader-inline-stroke:none;visibility:visible" data-index="6"/>
<path fill="#FFF" d="M824.463 352.222s.234.2.054.629c4.898 5.362 9.857 10.425 15.075 15.206 15.25 13.971 32.694 24.556 51.923 31.964 9.514 3.666 19.53 6.029 29.319 8.98.207.319.414.637.893 1.517.272 35.135.272 69.708.272 104.579-33.866-.056-66.203-5.087-97.775-15.124-31.516-10.02-60.722-24.745-88.224-43.972 0 1.546.003 2.365 0 3.184-.333 94.235-.576 188.47-1.131 282.703-.06 10.121-1.204 20.373-3.128 30.317-3.553 18.355-9.049 36.15-16.46 53.442-11.139 25.991-26.29 49.289-45.513 69.801-9.33 9.956-19.573 19.31-30.518 27.434-12.899 9.575-26.588 18.29-40.694 25.984a190.3 190.3 0 0 1-55.31 19.838c-15.868 3.041-32.048 4.68-48.164 6.118-7.837.698-15.899-.008-23.76-.926-13.934-1.627-27.967-3.102-41.644-6.085-22.69-4.948-44.071-13.642-64.112-25.53-4.659-2.763-9.653-4.96-14.493-7.418 0 0-.012.087.214-.267-.613-.712-1.45-1.071-2.29-1.43-2.29-1.842-4.58-3.683-6.965-6.21-.734-1.129-1.376-1.57-2.017-2.013 0 0 .013.027.203-.306-.955-1.939-1.982-3.644-3.262-5.132-14.851-17.275-26.576-36.468-35.944-57.22-11.765-26.066-19.075-53.395-20.68-81.788-1.05-18.594-.009-37.478 2.01-56.024 1.938-17.818 7.118-35.131 13.6-51.985 11.205-29.126 27.276-55.285 48.44-78.064 10.084-10.854 21.325-20.812 32.968-30.003 19.507-15.399 41.233-27.072 64.695-35.554 25.828-9.337 52.403-14.302 79.811-15.048 0 0 .186.145.179.69-.007 35.459-.007 70.374-.007 105.227-9.174-1.643-17.746-3.846-26.442-4.58-13.676-1.154-27.17.723-40.32 4.855-27.888 8.764-49.401 25.83-64.106 50.88-12.789 21.786-17.637 45.469-14.277 70.815 2.07 15.618 7.008 30.076 15.189 43.394 10.66 17.353 24.75 31.236 42.93 40.734.8.696 1.6 1.391 2.712 2.554 7.455 10.522 16.336 18.817 26.535 25.637 25.406 16.989 53.322 23.509 83.396 17.793 30.44-5.785 54.497-22.187 72.193-47.516 11.275-16.139 18.851-34.328 18.938-53.982.728-164.184.893-328.37 1.22-492.556.03-15.158.004-30.317.004-45.476V227c2.5 0 4.459.003 6.417 0l92.44-.182s.185.146.178.638c-.011.99-.118 1.515-.006 1.986 4.523 19.027 10.642 37.38 20.334 54.567 11.868 21.048 27.33 38.907 45.676 54.385 3.225 2.72 7.227 4.52 10.87 6.745 0 0 .025-.087-.228.236.549.758 1.351 1.193 2.153 1.628a213 213 0 0 0 4.05 4.357c1.215.615 1.897.739 2.579.862" style="--darkreader-inline-fill:var(--darkreader-background-ffffff, #181a1b);--darkreader-inline-stroke:none;opacity:1" data-index="7"/>
<path fill="#FE2C55" d="M351.102 935.207c4.81 2.113 9.805 4.31 14.464 7.074 20.04 11.888 41.423 20.582 64.112 25.53 13.677 2.983 27.71 4.458 41.645 6.085 7.86.918 15.922 1.624 23.759.926 16.116-1.437 32.296-3.077 48.164-6.118a190.3 190.3 0 0 0 55.31-19.838c14.106-7.695 27.795-16.409 40.694-25.984 10.945-8.125 21.187-17.478 30.518-27.434 19.223-20.512 34.374-43.81 45.513-69.8 7.411-17.294 12.907-35.088 16.46-53.443 1.924-9.944 3.068-20.196 3.128-30.317.555-94.233.798-188.468 1.13-282.703.004-.82.001-1.638.001-3.184 27.502 19.227 56.708 33.953 88.224 43.972 31.572 10.037 63.91 15.068 97.775 15.124l-.001-104.474c4.51.154 9.012.857 13.536 1.357 8.305.919 16.623 1.719 25.209 2.596v134.519c-67.705-.02-129.093-20.066-185.743-58.985v6.744c0 90.145.24 180.29-.177 270.433-.098 21.251-2.996 42.466-9.902 62.73-5.02 14.73-10.45 29.412-17.031 43.492-8.314 17.789-19.696 33.758-32.525 48.702-19.472 22.68-42.194 41.259-68.297 55.807-23.955 13.352-49.395 22.29-76.404 27.059-18.278 3.227-36.674 4.722-55.145 3.796-19.103-.958-37.984-4.009-56.415-9.32-24.9-7.176-48.45-17.555-69.53-32.611-13.434-9.596-25.67-20.869-38.472-31.735" style="--darkreader-inline-fill:var(--darkreader-background-fe2c55, #b10123);--darkreader-inline-stroke:none;visibility:visible;opacity:1" data-index="8"/>
<path fill="#25F4EE" d="M738.718 226.448c-30.675.431-61.488.492-92.301.551-1.958.004-3.916.001-6.417.001v5.288c0 15.159.026 30.318-.004 45.476-.327 164.186-.492 328.372-1.22 492.556-.087 19.654-7.663 37.843-18.938 53.982-17.696 25.329-41.753 41.73-72.193 47.516-30.074 5.716-57.99-.804-83.396-17.793-10.199-6.82-19.08-15.115-26.237-25.514 7.868 2.356 15.616 5.573 23.656 7.662 25.174 6.541 49.546 3.832 73.132-7.113 24.843-11.528 43.085-29.753 54.753-54.333 6.583-13.87 10.48-28.582 10.476-44.184-.046-177.079-.029-354.157-.029-531.236v-6.085h135.087c1.182 11.115 2.337 21.985 3.63 33.226" style="--darkreader-inline-fill:var(--darkreader-background-25f4ee, #09b3b0);--darkreader-inline-stroke:none;opacity:1" data-index="9"/>
<path fill="#25F4EE" d="M521.92 513.367c-27.472 1.198-54.047 6.163-79.875 15.5-23.462 8.482-45.188 20.155-64.695 35.554-11.643 9.191-22.884 19.149-32.969 30.003-21.163 22.779-37.234 48.938-48.438 78.064-6.483 16.854-11.663 34.167-13.602 51.985-2.018 18.546-3.059 37.43-2.008 56.024 1.604 28.393 8.914 55.722 20.68 81.788 9.367 20.752 21.092 39.945 35.943 57.22 1.28 1.488 2.307 3.193 3.276 5.137-4.362-2.66-8.792-5.374-12.693-8.706-22.501-19.22-40.885-41.832-55.525-67.563-13.817-24.284-22.938-50.28-27.8-77.658-2.113-11.903-2.382-24.155-3.142-36.27-.406-6.468-.592-13.033.035-19.465 1.346-13.8 2.408-27.721 5.173-41.269 4.709-23.074 13.319-44.87 24.678-65.555 8.005-14.577 17.178-28.35 28.242-40.764 6.834-7.668 13.824-15.253 21.309-22.272 21.795-20.44 46.74-35.927 74.434-47.277 16.255-6.662 32.956-11.759 50.142-14.54 14.226-2.302 28.813-2.77 43.264-3.147 11.107-.29 22.25.829 33.636 1.333 0 11.145 0 21.285-.064 31.878" style="--darkreader-inline-fill:var(--darkreader-background-25f4ee, #09b3b0);--darkreader-inline-stroke:var(--darkreader-text-0d99ff, #23a3ff);opacity:1" data-index="10"/>
<path fill="#FE2C55" d="M434.992 825.482c-18.17-9.146-32.26-23.029-42.92-40.382-8.18-13.318-13.12-27.776-15.19-43.394-3.359-25.346 1.49-49.029 14.278-70.815 14.705-25.05 36.218-42.116 64.106-50.88 13.15-4.132 26.644-6.009 40.32-4.855 8.696.734 17.268 2.937 26.442 4.58 0-34.853 0-69.768.08-105.135 12.773-.07 25.466.313 38.514.706v138.468c-53.64-13.33-97.83 1.827-127.89 47.878-26.347 40.366-23.921 82.77 2.26 123.829" style="--darkreader-inline-fill:var(--darkreader-background-fe2c55, #b10123);--darkreader-inline-stroke:none;opacity:1" data-index="11"/>
<path fill="#FE2C55" d="M815.942 344.774c-3.676-1.86-7.678-3.66-10.903-6.38-18.345-15.478-33.808-33.337-45.676-54.385-9.692-17.187-15.811-35.54-20.334-54.567-.112-.471-.005-.995.08-1.894 11.849-.399 23.618-.399 35.369-.399.52 6.64 1.016 13.006 1.52 19.373 1.356 17.16 5.67 33.595 12.004 49.556 6.15 15.498 14.426 29.798 24.114 43.317 1.227 1.713 2.57 3.344 3.826 5.379" style="--darkreader-inline-fill:var(--darkreader-background-fe2c55, #b10123);--darkreader-inline-stroke:none" data-index="12"/>
<path fill="#25F4EE" d="M921.03 408.619c-9.985-2.57-20-4.932-29.515-8.598-19.23-7.408-36.673-17.993-51.923-31.964-5.218-4.78-10.177-9.844-15.033-15.141 11 4.792 21.587 10.403 32.604 14.981 12.867 5.347 26.388 8.66 40.306 10.105 7.971.828 15.94 1.67 23.759 2.49 0 9.086 0 18.415-.197 28.127" style="--darkreader-inline-fill:var(--darkreader-text-25f4ee, #36f5ef);--darkreader-inline-stroke:var(--darkreader-text-0d99ff, #23a3ff);opacity:1" data-index="13"/>
<path fill="#FE2C55" d="M817.829 346.692a3.5 3.5 0 0 1-2.192-1.305c.868.124 1.527.559 2.192 1.305" style="--darkreader-inline-fill:var(--darkreader-text-fe2c55, #fe395f);--darkreader-inline-stroke:none" data-index="14"/>
<path fill="#25F4EE" d="M340.042 925.237c.614.148 1.256.59 1.845 1.399-.64-.125-1.23-.615-1.845-1.4" style="--darkreader-inline-fill:var(--darkreader-text-25f4ee, #36f5ef);--darkreader-inline-stroke:none;visibility:visible" data-index="15"/>
<path fill="#FE2C55" d="M349.108 933.443a3.66 3.66 0 0 1 2.22 1.138c-.826-.062-1.468-.46-2.22-1.138" style="--darkreader-inline-fill:var(--darkreader-text-fe2c55, #fe395f);--darkreader-inline-stroke:none;visibility:visible" data-index="16"/>
<path fill="#25F4EE" d="M824.248 351.911c-.467.188-1.15.064-2.04-.402.47-.198 1.147-.053 2.04.402" style="--darkreader-inline-fill:var(--darkreader-text-25f4ee, #36f5ef);--darkreader-inline-stroke:none" data-index="17"/>
</svg>
`;

export const GUEST_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-user"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>`;

export const WALLET_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const ConnectWalletSocialOptions = (
telegram: "Telegram",
twitch: "Twitch",
x: "X",
tiktok: "TikTok",
};

const { data: ecosystemAuthOptions, isLoading } = useQuery({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
case "steam":
case "line":
case "x":
case "tiktok":

Check warning on line 46 in packages/thirdweb/src/react/web/wallets/shared/oauthSignIn.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/wallets/shared/oauthSignIn.ts#L46

Added line #L46 was not covered by tests
case "guest":
case "coinbase":
case "discord":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export type AuthProvider =
| "Discord"
| "Coinbase"
| "X"
| "TikTok"
| "Line"
| "Twitch"
| "Steam"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export class InAppNativeConnector implements InAppConnector {
case "discord":
case "line":
case "x":
case "tiktok":
case "apple": {
const { socialAuth } = await import("./auth/native-auth.js");
const ExpoLinking = require("expo-linking");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export class InAppWebConnector implements InAppConnector {
case "farcaster":
case "line":
case "x":
case "tiktok":
case "steam":
case "coinbase":
case "discord": {
Expand Down Expand Up @@ -410,6 +411,7 @@ export class InAppWebConnector implements InAppConnector {
case "github":
case "line":
case "x":
case "tiktok":
case "guest":
case "coinbase":
case "twitch":
Expand Down
1 change: 1 addition & 0 deletions packages/thirdweb/src/wallets/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const socialAuthOptions = [
"discord",
"line",
"x",
"tiktok",
"coinbase",
"farcaster",
"telegram",
Expand Down
Loading