Documentation ¶
Index ¶
- func CheckPassword(pass string, hashed_pass string) error
- func EnvVariablesInit()
- func Generate_JWT_Token(id string, username string, email string) (string, error)
- func Get_Env_Variable(key string) string
- func HashPassword(raw_pass string) (string, error)
- func RemoveElementFromArray(arr []string, element string) []string
- func RemoveElementFromArrayUUID(arr []gocql.UUID, element gocql.UUID) []gocql.UUID
- type CustomClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func EnvVariablesInit ¶
func EnvVariablesInit()
func Generate_JWT_Token ¶
func Get_Env_Variable ¶
func HashPassword ¶
func RemoveElementFromArray ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct { ID string `json:"id"` Username string `json:"username"` Email string `json:"email"` jwt.RegisteredClaims }
func Verify_JWT_Token ¶
func Verify_JWT_Token(token_value string) (*CustomClaims, error)
Click to show internal directories.
Click to hide internal directories.