Skip to content

Commit

Permalink
fix: add missing sign out page route for next.js app dir sample (#733)
Browse files Browse the repository at this point in the history
The `/api/logto/sign-out` route is missing, this commit fix it, otherwise it
will lead to a 404 not found.
  • Loading branch information
xiaohanyu committed Jun 20, 2024
1 parent c5715f1 commit dd09c98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/next-app-dir-sample/app/api/logto/sign-out/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { type NextRequest } from 'next/server';

import { logtoClient } from '../../../../libraries/logto-edge';

export const runtime = 'edge';

export async function GET(request: NextRequest) {
return logtoClient.handleSignOut()(request);
}

0 comments on commit dd09c98

Please sign in to comment.