Protocol
Authenticatable
Capable of being authenticated.
protocol Authenticatable
Topics
Type Methods
guardMiddleware(throwing:)This middleware ensures that anAuthenticatabletypeAhas been authenticated by a previousMiddlewareor throws anError. The middlewares that actually perform authentication will not throw errors if they fail to authenticate the user (except in some exceptional cases like malformed data). This allows the middlewares to be composed together to create chains of authentication for multiple user types.redirectMiddleware(makePath:)Basic middleware to redirect unauthenticated requests to the supplied pathredirectMiddleware(path:)Basic middleware to redirect unauthenticated requests to the supplied path