Documentation ¶
Index ¶
Constants ¶
View Source
const ProviderApple = "apple.com"
View Source
const ProviderPassword = "password"
View Source
const SecondFactorPhone = "phone"
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() gin.HandlerFunc
Types ¶
type UserInfo ¶
type UserInfo struct { Name string `json:"name"` Sub string `json:"sub" binding:"required"` Email string `json:"email" binding:"omitempty,email"` EmailVerified bool `json:"email_verified"` Firebase struct { SignInProvider string `json:"sign_in_provider"` SignInSecondFactor string `json:"sign_in_second_factor"` } `json:"firebase"` }
func GetUserInfo ¶
GetUserInfo returns the firebase user info from the context.
func (UserInfo) IsServiceAccount ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.