Documentation ¶
Index ¶
- func ComparePassword(password string, hashedPass []byte) error
- func ConvertToBase64()
- func GenerateKey(key []byte) []byte
- func HashPassword(password string) (hashedPass []byte, err error)
- func Refresh(w http.ResponseWriter, r *http.Request)
- func SignIn(w http.ResponseWriter, r *http.Request)
- func Welcome(w http.ResponseWriter, r *http.Request)
- type Claims
- type Credentials
- type UserClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶ added in v0.10.0
func ConvertToBase64 ¶
func ConvertToBase64()
func GenerateKey ¶ added in v0.11.0
generating a 64 bytes key. why? see the function signMessage
func HashPassword ¶ added in v0.10.0
Types ¶
type Credentials ¶ added in v0.13.0
type UserClaims ¶ added in v0.12.0
type UserClaims struct { jwt.StandardClaims SessionID int64 `json:"session_id"` }
func (*UserClaims) Valid ¶ added in v0.12.0
func (u *UserClaims) Valid() error
Click to show internal directories.
Click to hide internal directories.