Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAuthToken ¶
func GenerateAuthToken(atw *AuthTokenWrapper) (string, error)
func RefreshIfNeededAuthToken ¶
func RefreshIfNeededAuthToken(atw *AuthTokenWrapper) (string, error)
Types ¶
type AuthTokenWrapper ¶
type AuthTokenWrapper struct { UserID string `json:"user_id"` jwt.StandardClaims }
func ParseAuthToken ¶
func ParseAuthToken(authToken string) (*AuthTokenWrapper, error)
Click to show internal directories.
Click to hide internal directories.