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.
Prompt file imported from Rayen-BY/Showroom (.github/prompts/sprint1-auth/create-auth-middleware.prompt.md). Copyright stays with the author.
Read .github/copilot-instructions.md first.
Create an authentication middleware.
Requirements:
Read Authorization header.
Format expected:
Bearer
Verify token using JWT_SECRET.
Attach decoded user to req.user.
Return 401 if token missing.
Return 401 if token invalid.
Use CommonJS syntax.
Generate only the middleware code.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
Read .github/copilot-instructions.md first.
Create an authentication middleware.
Requirements:
* Read Authorization header.
* Format expected:
Bearer <token>
* Verify token using JWT_SECRET.
* Attach decoded user to req.user.
* Return 401 if token missing.
* Return 401 if token invalid.
Use CommonJS syntax.
Generate only the middleware code.
Manifest
The prompt text and its fill-in variables. Copy it or fetch it by URL from your own code.