Skip to content

Commit

Permalink
Remove requiredScopes usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Mar 29, 2023
1 parent fcf75e7 commit adaf015
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sample-01/api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const {
auth,
InvalidTokenError,
InvalidRequestError,
InsufficientScopeError,
requiredScopes,
InsufficientScopeError
} = require("express-oauth2-jwt-bearer");
const authConfig = require("./src/auth_config.json");

Expand Down Expand Up @@ -37,7 +36,7 @@ app.use(
})
);

app.get("/api/external", requiredScopes('admin'), (req, res) => {
app.get("/api/external", (req, res) => {
res.send({
msg: "Your access token was successfully validated!",
});
Expand Down

0 comments on commit adaf015

Please sign in to comment.