Skip to content

Commit ba805bf

Browse files
committed
changed route
1 parent 2bf8619 commit ba805bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/mini-apps/core-concepts/authentication.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function App() {
2727
setToken(token);
2828

2929
// Use the token to authenticate the user and fetch authenticated user data
30-
const response = await sdk.quickAuth.fetch(`${BACKEND_ORIGIN}/me`, {
30+
const response = await sdk.quickAuth.fetch(`${BACKEND_ORIGIN}/auth`, {
3131
headers: { "Authorization": `Bearer ${token}` }
3232
});
3333

@@ -67,7 +67,7 @@ npm install @farcaster/quick-auth
6767
When a user authenticates, Farcaster's Quick Auth Server verifies their signature and issues a JWT. Your backend verifies this JWT using the `@farcaster/quick-auth` package.
6868
6969
```jsx route.tsx
70-
// app/api/me/route.ts
70+
// app/api/auth/route.ts
7171
import { createClient, Errors } from '@farcaster/quick-auth';
7272
import { NextRequest, NextResponse } from 'next/server';
7373

0 commit comments

Comments
 (0)