Versions in this module Expand all Collapse all v0 v0.0.1 Aug 8, 2023 Changes in this version + var ContextKey = "user" + var ErrInvalid = xerror.NewHTTPError(http.StatusUnauthorized, "invalid or expired firebase") + var ErrMissing = xerror.NewHTTPError(http.StatusBadRequest, "missing or malformed firebase") + func ContextToken(c *gin.Context) (*auth.Token, error) + func Next(projectID, credentialsFile string) gin.HandlerFunc + func NextSuccessHandler(projectID, credentialsFile string, handler middleware.SuccessHandler) gin.HandlerFunc + func NextWithAuthClient(authClient *AuthClient) gin.HandlerFunc + func NextWithAuthClientSuccessHandler(authClient *AuthClient, handler middleware.SuccessHandler) gin.HandlerFunc + func NextWithConfig(config FirebaseConfig) gin.HandlerFunc + type AuthClient struct + ApiKey string + Ctx context.Context + func NewAuthClient(projectID, credentialsFile, apiKey string) (*AuthClient, error) + func (f AuthClient) TokenToIDToken(token string) (IDToken, error) + type FirebaseConfig struct + AuthClient *AuthClient + AuthScheme string + ContextKey string + ErrorHandler middleware.ErrorHandler + Skipper middleware.Skipper + SuccessHandler middleware.SuccessHandler + TokenLookup string + type IDToken struct + ExpiresIn string + IDToken string + RefreshToken string