Skip to content

Commit 15ee155

Browse files
committed
adds missing async to connect docs (#5789)
## Problem solved Adds missing `async` to connect callbacks in documentation <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `connect` function calls in multiple files to use an asynchronous arrow function instead of a regular function. This change enhances the handling of asynchronous operations within the `connect` function. ### Detailed summary - Updated `connect` function calls in `page.mdx` files to use `async () =>` instead of `() =>`. - Changes made in: - `apps/portal/src/app/connect/in-app-wallet/custom-auth/configuration/page.mdx` - `apps/portal/src/app/connect/in-app-wallet/guides/build-your-own-ui/page.mdx` - `apps/portal/src/app/react/v5/in-app-wallet/build-your-own-ui/page.mdx` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 7d8566e commit 15ee155

File tree

3 files changed

+8
-8
lines changed
  • apps/portal/src/app
    • connect/in-app-wallet
    • react/v5/in-app-wallet/build-your-own-ui

3 files changed

+8
-8
lines changed

apps/portal/src/app/connect/in-app-wallet/custom-auth/configuration/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ import { useConnect } from "thirdweb/react";
146146
const { connect } = useConnect();
147147

148148
const handlePostLogin = async (jwt: string) => {
149-
await connect(() => {
149+
await connect(async () => {
150150
const wallet = inAppWallet();
151151
await wallet.connect({
152152
client,

apps/portal/src/app/connect/in-app-wallet/guides/build-your-own-ui/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ import { useConnect } from "thirdweb/react";
7979
const { connect } = useConnect();
8080

8181
const handleLogin = async () => {
82-
await connect(() => {
82+
await connect(async () => {
8383
const wallet = inAppWallet();
8484
await wallet.connect({
8585
client,
@@ -137,7 +137,7 @@ const preLogin = async (email: string) => {
137137

138138
const handleLogin = async (email: string, verificationCode: string) => {
139139
// verify email and connect
140-
await connect(() => {
140+
await connect(async () => {
141141
const wallet = inAppWallet();
142142
await wallet.connect({
143143
client,
@@ -194,7 +194,7 @@ import { inAppWallet, hasStoredPasskey } from "thirdweb/wallets/in-app";
194194
const { connect } = useConnect();
195195

196196
const handleLogin = async () => {
197-
await connect(() => {
197+
await connect(async () => {
198198
const wallet = inAppWallet();
199199
const hasPasskey = await hasStoredPasskey(client);
200200
await wallet.connect({

apps/portal/src/app/react/v5/in-app-wallet/build-your-own-ui/page.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import { useConnect } from "thirdweb/react";
8282
const { connect } = useConnect();
8383

8484
const handleLogin = async () => {
85-
await connect(() => {
85+
await connect(async () => {
8686
const wallet = inAppWallet();
8787
await wallet.connect({
8888
client,
@@ -113,7 +113,7 @@ const preLogin = async (email: string) => {
113113

114114
const handleLogin = async (email: string, verificationCode: string) => {
115115
// verify email and connect
116-
await connect(() => {
116+
await connect(async () => {
117117
const wallet = inAppWallet();
118118
await wallet.connect({
119119
client,
@@ -144,7 +144,7 @@ const preLogin = async (phoneNumber: string) => {
144144

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

173173
const handleLogin = async () => {
174-
await connect(() => {
174+
await connect(async () => {
175175
const wallet = inAppWallet({
176176
auth: {
177177
passkeyDomain: "example.com", // defaults to current url

0 commit comments

Comments
 (0)