package
Version:
v0.0.0-...-71aa9d5
Opens a new window with list of versions in this module.
Published: Dec 8, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New returns a new instance of the Auth service.
IsAdmin checks if user is admin.
Login checks if user with given credentials exists in the system and returns access token.
If user exists, but password is incorrect, returns error.
If user doesn't exist, returns error.
RegisterNewUser registers new user in the system and returns user ID.
If user with given username already exists, returns error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.