next-token-auth 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -138,6 +138,8 @@ export const clientAuthConfig: ClientAuthConfig = {
|
|
|
138
138
|
|
|
139
139
|
Create this file to handle login, logout, refresh, and session endpoints automatically.
|
|
140
140
|
|
|
141
|
+
**Important:** The file path must be exactly `app/api/auth/[action]/route.ts` — the `[action]` part is a Next.js dynamic route segment (keep the square brackets as-is). Do not rename it.
|
|
142
|
+
|
|
141
143
|
```ts
|
|
142
144
|
// app/api/auth/[action]/route.ts
|
|
143
145
|
import { createAuthHandlers } from "next-token-auth/server";
|