CoreID/app/routing/middleware/auth/Oauth2TokenOnly.middleware.js

15 lines
380 B
JavaScript
Raw Permalink Normal View History

2020-04-17 00:59:48 +00:00
/*
* Oauth2TokenOnly Middleware
* -------------------------------------------------------------
* Allows the request to proceed if a valid OAuth2 bearer token was
* provided. If not, return a JSON-encoded error message.
*/
const Middleware = require('flitter-auth/middleware/Oauth2TokenOnly')
class Oauth2TokenOnly extends Middleware {
}
module.exports = Oauth2TokenOnly