auth

package
v0.0.0-...-2022bb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(ctx context.Context) (err error)

func GetUserInfo

func GetUserInfo(ctx context.Context, token string) (userOne *model.User, err error)

func Login

func Login(ctx context.Context, Username, Password string) (token string, err error)

func Logout

func Logout(ctx context.Context, id model.Id) (err error)

func Register

func Register(ctx context.Context) (err error)

func ResetPassword

func ResetPassword(ctx context.Context) (err error)

Types

type UserClaims

type UserClaims struct {
	Id       model.Id
	Username string
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL