Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ import { useConnect } from "thirdweb/react";
const { connect } = useConnect();

const handlePostLogin = async (jwt: string) => {
await connect(() => {
await connect(async () => {
const wallet = inAppWallet();
await wallet.connect({
client,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import { useConnect } from "thirdweb/react";
const { connect } = useConnect();

const handleLogin = async () => {
await connect(() => {
await connect(async () => {
const wallet = inAppWallet();
await wallet.connect({
client,
Expand Down Expand Up @@ -137,7 +137,7 @@ const preLogin = async (email: string) => {

const handleLogin = async (email: string, verificationCode: string) => {
// verify email and connect
await connect(() => {
await connect(async () => {
const wallet = inAppWallet();
await wallet.connect({
client,
Expand Down Expand Up @@ -194,7 +194,7 @@ import { inAppWallet, hasStoredPasskey } from "thirdweb/wallets/in-app";
const { connect } = useConnect();

const handleLogin = async () => {
await connect(() => {
await connect(async () => {
const wallet = inAppWallet();
const hasPasskey = await hasStoredPasskey(client);
await wallet.connect({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import { useConnect } from "thirdweb/react";
const { connect } = useConnect();

const handleLogin = async () => {
await connect(() => {
await connect(async () => {
const wallet = inAppWallet();
await wallet.connect({
client,
Expand Down Expand Up @@ -113,7 +113,7 @@ const preLogin = async (email: string) => {

const handleLogin = async (email: string, verificationCode: string) => {
// verify email and connect
await connect(() => {
await connect(async () => {
const wallet = inAppWallet();
await wallet.connect({
client,
Expand Down Expand Up @@ -144,7 +144,7 @@ const preLogin = async (phoneNumber: string) => {

const handleLogin = async (phoneNumber: string, verificationCode: string) => {
// verify phone number and connect
await connect(() => {
await connect(async () => {
const wallet = inAppWallet();
await wallet.connect({
client,
Expand All @@ -171,7 +171,7 @@ import { inAppWallet, hasStoredPasskey } from "thirdweb/wallets/in-app";
const { connect } = useConnect();

const handleLogin = async () => {
await connect(() => {
await connect(async () => {
const wallet = inAppWallet({
auth: {
passkeyDomain: "example.com", // defaults to current url
Expand Down
Loading