agnyz / the-bed-stack

Bun + ElysiaJS + DrizzleORM = the stack you don't want to sleep on 🛌💤
https://agnyz.github.io/the-bed-stack/
MIT License
39 stars 3 forks source link

feat: bearer authorization on swagger ui #107

Open TeeWallz opened 2 months ago

TeeWallz commented 2 months ago

Description

While bearer authorization has been implemented, there is no way to utilize this via the Swagger UI in current state.

This MR introduces this value via teh standard jwt mechanism. It also corrects the jwt token prefix to the use standard 'bearer' prefix to align with the jwt standard. Without this change, the bearer token generated fails the 'token' string check.


PR Checklist (Please do not remove)