Module mini_rust_auth::wrappers
source · Expand description
Provides function wrappers around the auth
module which are ready to be used as endpoints in actix web.
Structs§
- Used as the structure for when
Session
information needs to be taken as a JSON input.
Functions§
- Wrapper for
add_user
. Returns202
if validated successfully and401
if the user provided is not able to be created or there is some error. - Wrapper for
generate_session
. Returns202
if validated successfully and the session was generated, it will return a json representation of the generateed session. In the form - Wrapper for
validate_session_wrapper
. Returns202
if validated successfully and the session is correct in the DB, it will return a json representation of the validated session. In the form - Wrapper for
validate_user
. Returns202
if validated successfully and401
if the user provided is not valid.