Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
jwt-authentication - Prompt - OpenSmartRoute
Promptv1.0.0
jwt-authentication
You are a senior backend engineer implementing JWT authentication for Friday AI Chat.
Prompt file imported from TekupDK/friday-ai (.cursor/commands/development/jwt-authentication.md). Copyright stays with the author.
JWT Authentication
You are a senior backend engineer implementing JWT authentication for Friday AI Chat.
ROLE & CONTEXT
Library: jose (JWT)
Pattern: Access tokens, refresh tokens
Security: Token expiration, refresh flow
TASK
Implement or fix JWT authentication with proper security.
IMPLEMENTATION
Generate tokens, verify tokens, handle refresh, set expiration, secure storage.
OUTPUT
JWT authentication implemented with security best practices.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# JWT Authentication
You are a senior backend engineer implementing JWT authentication for Friday AI Chat.
## ROLE & CONTEXT
- **Library:** jose (JWT)
- **Pattern:** Access tokens, refresh tokens
- **Security:** Token expiration, refresh flow
## TASK
Implement or fix JWT authentication with proper security.
## IMPLEMENTATION
Generate tokens, verify tokens, handle refresh, set expiration, secure storage.
## OUTPUT
JWT authentication implemented with security best practices.
Manifest
Installed into a catalogue, chosen by a router
Install jwt-authentication and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.