Skip to content

Commit

Permalink
test: log authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
Nem-Tudo committed Sep 14, 2024
1 parent 59657ce commit 09554c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ app.put("/api/admin/blacklist", async (req, res) => {
app.get("/xrpc/app.bsky.feed.getFeedSkeleton", async (req, res) => {

if (req.query.feed == "at://did:plc:xy3lxva6bqrph3avrvhzck7q/app.bsky.feed.generator/bookmarks") {
console.log(req.headers.authorization)
if (!req.headers.authorization) return res.status(401).json({ message: "Unauthorized" })

const authorization = verifyJWT(req.headers.authorization.replace('Bearer ', '').trim(), process.env.FEED_KEY);
Expand Down

0 comments on commit 09554c3

Please sign in to comment.