firebase

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: LGPL-2.1 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationResponse

type AuthenticationResponse struct {
	Context          string `json:"context"`
	DisplayName      string `json:"displayName"`
	Email            string `json:"email"`
	EmailVerified    bool   `json:"emailVerified"`
	ExpiresIn        string `json:"expiresIn"`
	FederatedID      string `json:"federatedId"`
	FirstName        string `json:"firstName"`
	FullName         string `json:"fullName"`
	IDToken          string `json:"idToken"`
	IsNewUser        bool   `json:"isNewUser"`
	Kind             string `json:"kind"`
	LocalID          string `json:"localId"`
	OauthAccessToken string `json:"oauthAccessToken"`
	OauthExpireIn    int64  `json:"oauthExpireIn"`
	OauthIDToken     string `json:"oauthIdToken"`
	PhotoURL         string `json:"photoUrl"`
	ProviderID       string `json:"providerId"`
	RawUserInfo      string `json:"rawUserInfo"`
	RefreshToken     string `json:"refreshToken"`
}

AuthenticationResponse represents the response from firebase authentication

type Config

type Config struct {
	FirebaseCredentials string
}

Config represents the configuration

type Crypter

type Crypter interface {
	UID() string
	GetCurrentUnixTime() int64
	ScheduleToReset() int64
}

Crypter represents security and stuff interface

type Service

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

Service represents the firebase service

func New

func New(cfg *Config, cr Crypter) *Service

New initializes firebase service with default config

Jump to

Keyboard shortcuts

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