We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firebase-admin
We attempted to add middleware to secure our backend routes while setting up SST. Specifically, we tried implementing a middleware function like:
itemsRouter.post("/", middleware.decodeToken, async (req, res) => { // Route handler logic });
This middleware is meant to decode the token and authenticate requests. However, we ran into some issues, and it wasn’t working as expected.
middleware.decodeToken
itemsRouter.post("/")
The frontend is sending the Bearer token in requests like this: [Frontend code sending Bearer token](
ZotNFound/packages/web/src/components/Map/Map.jsx
Lines 242 to 246 in 8408271
We need to ensure that our middleware properly handles and validates this token.
The text was updated successfully, but these errors were encountered:
ElianMalessy
No branches or pull requests
To do
firebase-admin
correctly with SSTDescription
We attempted to add middleware to secure our backend routes while setting up SST. Specifically, we tried implementing a middleware function like:
This middleware is meant to decode the token and authenticate requests. However, we ran into some issues, and it wasn’t working as expected.
Expected Behavior
Actual Behavior
Steps to Reproduce
middleware.decodeToken
toitemsRouter.post("/")
.Relevant Information
The frontend is sending the Bearer token in requests like this:
[Frontend code sending Bearer token](
ZotNFound/packages/web/src/components/Map/Map.jsx
Lines 242 to 246 in 8408271
We need to ensure that our middleware properly handles and validates this token.
The text was updated successfully, but these errors were encountered: