firebase

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 20 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.14.0

type Config struct {
	*firebase.Config
	Secrets   *scy.Resource
	WebAPIKey *scy.Resource
}

Config represents firebase config

type Service

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

func New

func New(ctx context.Context, config *Config, options ...option.ClientOption) (*Service, error)

func (*Service) InitiateBasicAuth

func (s *Service) InitiateBasicAuth(ctx context.Context, username, password string) (*sauth.Token, error)

func (*Service) ReissueIdentityToken added in v0.14.0

func (s *Service) ReissueIdentityToken(ctx context.Context, refreshToken string, subject string) (*sauth.Token, error)

ReissueIdentityToken obtains a fresh ID token by calling the Secure Token API with a valid refresh token.

func (*Service) ResetCredentials added in v0.15.2

func (s *Service) ResetCredentials(ctx context.Context, email, newPassword string) error

func (*Service) VerifyIdentity

func (s *Service) VerifyIdentity(ctx context.Context, rawToken string) (*sjwt.Claims, error)

Jump to

Keyboard shortcuts

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