From 4ad257c69087a6535eddf62871f0c1e6edb87480 Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Tue, 9 Nov 2021 10:48:44 +0900 Subject: [PATCH] docs: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c17b59..1ddb8b1 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ export const middleware = async (req: NextRequest) => { // type makeAuth0Inspector = (fallback: Fallback, apiEndpoint: string) => AsyncMiddleware; return makeAuth0Inspector( { type: 'redirect', destination: '/singin' }, - `${req.nextUrl.origin}/api/auth/me` // api endpoint for auth0 profile + '/api/auth/me' // api endpoint for auth0 profile )(req) } ```