Expand description
Provides function wrappers around the auth
module which are ready to be used as endpoints in actix web.
Structs§
- Json
Session - Used as the structure for when
Session
information needs to be taken as a JSON input.
Functions§
- add_
user_ wrapper - Wrapper for
add_user
. Returns202
if validated successfully and401
if the user provided is not able to be created or there is some error. - delete_
user_ wrapper - Wrapper for
delete_user
- generate_
session_ wrapper - 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 - validate_
session_ wrapper - 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 - validate_
user_ wrapper - Wrapper for
validate_user
. Returns202
if validated successfully and401
if the user provided is not valid.