Module rocket_auth::prelude [−][src]
Re-exports
Structs
The Auth
guard allows to log in, log out, sign up, modify, and delete the currently (un)authenticated user.
For more information see Auth
.
A working example:
The Login
form is used along with the Auth
guard to authenticate users.
The Session guard can be used to retrieve user session data.
Unlike User
, using session does not verify that the session data is
still valid. Since the client could have logged out, or their session
may have expired. The Session guard is intended for purposes where
verifying the validity of the session data is unnecessary.
The Signup
form is used along with the Auth
guard to create new users.
Enums
Type Definitions
A type alias of result to omit the error type.