You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This route pair handles token verification and signed verification cookie issuance.
75
+
Most hostmasters should not call `buildSetCookieFromAssertion(...)` directly.
76
+
89
77
## Existing Gate Integration (Provider Mode)
90
78
91
79
Use these helpers when a hostmaster already has a gate flow and wants to add AgeCheck as a provider:
@@ -185,6 +173,24 @@ This keeps provider internals isolated while preserving one site-level cookie an
185
173
186
174
See `/docs/ADAPTERS.md` for adapter mapping and behavior notes.
187
175
176
+
## Troubleshooting
177
+
178
+
If you see:
179
+
180
+
```json
181
+
{
182
+
"verified": false,
183
+
"code": "verify_failed",
184
+
"error": "Failed to issue verification cookie"
185
+
}
186
+
```
187
+
188
+
check:
189
+
- Node runtime is `>=20`
190
+
-`AGECHECK_COOKIE_SECRET` is present in the running process and at least 32 bytes
191
+
-`payload.agegateway_session` is a UUID
192
+
- your verify route is using adapter helpers (`createExpressVerifyHandler` or equivalent)
193
+
188
194
## Worker reference
189
195
190
196
`worker-demo/` is a reference backend implementation (verify endpoint + gate page + cookie endpoints). It is useful for validation and demos, but production adopters should wire the SDK into their own server routes/middleware.
0 commit comments