auth

package
v0.0.0-...-9e70112 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

AuthService handles Firebase authentication

func NewAuthService

func NewAuthService() (*AuthService, error)

NewAuthService initializes the AuthService

func (*AuthService) ExtractClaims

func (as *AuthService) ExtractClaims(token *auth.Token) map[string]interface{}

ExtractClaims extracts custom claims from a verified token

func (*AuthService) VerifyIDToken

func (as *AuthService) VerifyIDToken(ctx context.Context, idToken string) (*auth.Token, error)

VerifyIDToken verifies the Firebase ID token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL