firebase

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirestoreIsAlreadyExists added in v0.0.3

func FirestoreIsAlreadyExists(err error) bool

func FirestoreIsNotFound

func FirestoreIsNotFound(err error) bool

Types

type App

type App struct {
	*firebase.App
}

func NewApp

func NewApp(ctx context.Context, opts ...option.ClientOption) (*App, error)

func NewAppAdmin added in v0.0.2

func NewAppAdmin(ctx context.Context) (*App, error)

func (*App) NewAuthClient

func (f *App) NewAuthClient(ctx context.Context) (*AuthClient, error)

NewAuthClient verify the given client Firebase ID_TOKEN. The authenticated client is returned and can be used to retrieve specific client information.

func (*App) VerifyIDToken

func (f *App) VerifyIDToken(ctx context.Context, idToken string) (string, error)

type AuthClient

type AuthClient struct {
	*auth.Client
}

Jump to

Keyboard shortcuts

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