CoreID/app/routing/middleware/auth/UserOnly.middleware.js
2020-04-16 19:59:48 -05:00

16 lines
395 B
JavaScript

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