Skip to content

Type Method

redirectMiddleware(path:)

Basic middleware to redirect unauthenticated requests to the supplied path
static func redirectMiddleware(path: String) -> any Middleware

Parameters

path

The path to redirect to if the request is not authenticated