Skip to content

Commit

Permalink
adds missing async to connect docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nischitpra committed Dec 18, 2024
1 parent 203da76 commit db6920e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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

0 comments on commit db6920e

Please sign in to comment.