Skip to content

Commit 5b67b33

Browse files
committed
add audience and issuer
1 parent 9ac4a32 commit 5b67b33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

orbit-api/server.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ const attachUser = (req, res, next) => {
157157
app.use(attachUser);
158158

159159
const requireAuth = jwt({
160-
secret: process.env.JWT_SECRET
160+
secret: process.env.JWT_SECRET,
161+
audience: 'api.orbit',
162+
issuer: 'api.orbit'
161163
});
162164

163165
const requireAdmin = (req, res, next) => {

0 commit comments

Comments
 (0)