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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. 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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-token-auth",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Production-grade authentication library for Next.js (App Router & Pages Router)",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",