Documentation ¶
Index ¶
Constants ¶
View Source
const GatewayUserInfoHeader = "X-Apigateway-Api-Userinfo"
Variables ¶
This section is empty.
Functions ¶
func HandleAuth ¶
func HandleAuth(h http.Handler) http.HandlerFunc
Types ¶
type Firebase ¶
func NewFirebase ¶
func NewFirebase(databaseURL string, opt ...option.ClientOption) (Firebase, error)
type Identities ¶
type UserInfo ¶
type UserInfo struct { Name string `json:"name"` Picture string `json:"picture"` Iss string `json:"iss"` Aud string `json:"aud"` AuthTime int `json:"auth_time"` UserID UserID `json:"user_id"` Sub string `json:"sub"` Iat int `json:"iat"` Exp int `json:"exp"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` Firebase firebase `json:"firebase"` StripeRole *domain.Role `json:"stripeRole"` }
Click to show internal directories.
Click to hide internal directories.