loginPageLogoutHandler(_:)

func loginPageLogoutHandler(_ req: Request) async throws -> View

POST /logout

** Form Submission Parameters**

  • allaccounts=true - Logs the user out of all sessions by removing the user’s auth token.

There’s a single URL for login/logout; it shows you the right page depending on your current login status. The logout form shows the user who they’re logged in as, and has a single ‘Logout’ button.