backend/app/routing/middleware/auth/Oauth2TokenOnly.middleware.js
2020-02-07 21:08:44 -06:00

15 lines
380 B
JavaScript

/*
* 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