backend/app/routing/middleware/auth/UserOnly.middleware.js

16 lines
395 B
JavaScript
Raw Normal View History

2020-02-08 03:08:24 +00:00
/*
* UserOnly Middleware
* -------------------------------------------------------------
* Allows the request to proceed if there's an authenticated user
* in the session. Otherwise, redirects the user to the login page
* of the default provider.
*/
const Middleware = require('flitter-auth/middleware/UserOnly')
class UserOnly extends Middleware {
}
module.exports = UserOnly