Skip to content

Commit 841a039

Browse files
committed
shorten matched paths
1 parent 6a6c91d commit 841a039

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/v5/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export default function createNextAuthAllAccess(options: NextAuthAllAccessOption
1515
const GET = async (req: NextRequest) => {
1616
const { pathname } = req.nextUrl
1717

18-
if (pathname.endsWith('all-access/jwks.json')) {
18+
if (pathname.endsWith('/jwks.json')) {
1919
const response = jwksHandler(handlerOptions)
2020
return Response.json(response)
2121
}
2222

23-
if (pathname.endsWith('all-access/.well-known/openid-configuration')) {
23+
if (pathname.endsWith('/.well-known/openid-configuration')) {
2424
const response = openidConfigurationHandler(handlerOptions)
2525
return Response.json(response)
2626
}

0 commit comments

Comments
 (0)