This column stores the Legendum account_service token for charging credits. Refer to the Database page for more on database management.
Modified Files
Several files require updates to incorporate the new model:
| File | Change |
|---|---|
src/db.ts | Remove PLAN_LIMITS, remove plan checks, add legendum_token column. |
src/routes/state.ts | Replace plan limit checks with legendum.charge() calls. |
src/routes/nodes.ts | Replace plan checks with legendum.charge() on node creation. |
src/notify/webhook.ts | Add legendum.charge() after webhook delivery. |
src/notify/email.ts | Add legendum.charge() after email sending. |
src/routes/namespaces.ts | Update for Legendum OAuth login. |
views/pricing.eta | Replace with Legendum pricing info and link. |
src/auth.ts | Use legendum_token for charge operations. |
Authentication Flow Changes
Browser Users
The authentication flow changes from email-based signup to Legendum OAuth:
- Original:
POST /v1/signup { email }generates and emails a token. - New: Redirect to Legendum OAuth, link the account, and generate a depends.cc bearer token.
CLI Users
For CLI tools, use the following command to link accounts:
Recent changes
- Created: Code files updated for Legendum integration and charging