Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("idToken")
Functions ¶
func CreateAndSign ¶
func CreateAndSign(claims ClaimsIDToken, hmacSampleSecret string) (string, error)
func ResponseError ¶
func ResponseError(w http.ResponseWriter, statusCode int, err error)
func ResponseSuccess ¶
func ResponseSuccess(w http.ResponseWriter, msg string)
Types ¶
type ClaimsIDToken ¶
type ClaimsIDToken struct { jwt.StandardClaims UID string `json:"uid"` Email string `json:"email"` }
func Parse ¶
func Parse(tokenString string) (*ClaimsIDToken, error)
Click to show internal directories.
Click to hide internal directories.