Documentation ¶
Index ¶
- Constants
- func CheckSignature(token string) error
- func ExtendToken(val string) (*jwt.Token, string, error)
- func GenerateBearerToken(user *models.User) (string, error)
- func GenerateCookie(token string, persistent bool) *http.Cookie
- func GetJwt(user *models.User) (string, error)
- func WrapToken(token string) string
- type AccountCommand
Constants ¶
View Source
const AccountCreatedEvent = "AccountCreated"
AccountCreatedEvent is the name of the event that a new account was created
View Source
const AccountDeletedEvent = "AccountDeleted"
AccizbtDeletedEvent is the name of the event that a account was deleted
Variables ¶
This section is empty.
Functions ¶
func CheckSignature ¶
func ExtendToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.