@auth-gate/react 0.2.0 → 0.4.0

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 CHANGED
@@ -22,7 +22,6 @@ const auth = createAuthRoutes({
22
22
  apiKey: process.env.AUTHGATE_API_KEY!,
23
23
  projectId: process.env.AUTHGATE_PROJECT_ID!,
24
24
  baseUrl: "https://authgate.dev",
25
- sessionSecret: process.env.SESSION_SECRET!,
26
25
  appUrl: "http://localhost:3000",
27
26
  });
28
27
  ```
@@ -222,7 +221,6 @@ Creates a Hono router with all auth endpoints.
222
221
  | `apiKey` | `string` | Yes | AuthGate API key |
223
222
  | `projectId` | `string` | Yes | AuthGate project ID |
224
223
  | `baseUrl` | `string` | Yes | AuthGate instance URL |
225
- | `sessionSecret` | `string` | Yes | Encryption secret (min 32 chars) |
226
224
  | `appUrl` | `string` | Yes | Your app's URL |
227
225
  | `cookieName` | `string` | No | Cookie name (default: `__authgate`) |
228
226
  | `sessionMaxAge` | `number` | No | Session TTL in seconds (default: `604800`) |
package/dist/server.d.cts CHANGED
@@ -26,7 +26,6 @@ interface AuthRoutesOptions extends AuthGateConfig {
26
26
  * apiKey: process.env.AUTHGATE_API_KEY!,
27
27
  * projectId: process.env.AUTHGATE_PROJECT_ID!,
28
28
  * baseUrl: process.env.AUTHGATE_URL!,
29
- * sessionSecret: process.env.SESSION_SECRET!,
30
29
  * appUrl: "http://localhost:5173",
31
30
  * });
32
31
  *
package/dist/server.d.ts CHANGED
@@ -26,7 +26,6 @@ interface AuthRoutesOptions extends AuthGateConfig {
26
26
  * apiKey: process.env.AUTHGATE_API_KEY!,
27
27
  * projectId: process.env.AUTHGATE_PROJECT_ID!,
28
28
  * baseUrl: process.env.AUTHGATE_URL!,
29
- * sessionSecret: process.env.SESSION_SECRET!,
30
29
  * appUrl: "http://localhost:5173",
31
30
  * });
32
31
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auth-gate/react",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -21,7 +21,7 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "@auth-gate/core": "0.2.0"
24
+ "@auth-gate/core": "0.4.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=18",