Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOwnerID ¶
GetOwnerID get user id from jwt of cookie
func GetUser ¶
func GetUser(c echo.Context) (*authmodels.AccountToken, error)
GetUser get user from jwt of cookie
Types ¶
type AccountToken ¶
type AccountToken struct { jwt.StandardClaims `json:",inline" bson:",inline"` Nick string `json:"nick"` Scopes string `json:"scopes"` Prn prnx.Prn `json:"prn"` Roles authmodels.RolesType `json:"roles"` Type authmodels.AccountType `json:"type"` }
Click to show internal directories.
Click to hide internal directories.