Skip to content

Protocol

Authenticatable

Capable of being authenticated.
protocol Authenticatable

Topics

Type Methods

  • guardMiddleware(throwing:)
    This middleware ensures that an Authenticatable type A has been authenticated by a previous Middleware or throws an Error. 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 path
  • redirectMiddleware(path:)
    Basic middleware to redirect unauthenticated requests to the supplied path

Relationships

Inherited By