auth

package
v0.0.0-...-eaccb27 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationVerifierI

type ApplicationVerifierI interface {
	GetJSValue() *js.Value
}

type Auth

type Auth struct {
	JSValue *js.Value
	Parent  *firebaseapp.App
}

func NewAuthFromApp

func NewAuthFromApp(app *firebaseapp.App) (*Auth, error)

func (*Auth) SignInWithPhoneNumber

func (self *Auth) SignInWithPhoneNumber(
	phonnenumber string,
	app_vfy ApplicationVerifierI,
) (*promise.Promise, error)

type ConfirmationResult

type ConfirmationResult struct {
	JSValue *js.Value
}

func NewConfirmationResultFromJSValue

func NewConfirmationResultFromJSValue(jsvalue *js.Value) *ConfirmationResult

func (*ConfirmationResult) Confirm

func (self *ConfirmationResult) Confirm(verificationCode string) *promise.Promise

func (*ConfirmationResult) GetVerificationId

func (self *ConfirmationResult) GetVerificationId() string

type RecaptchaVerifier

type RecaptchaVerifier struct {
	JSValue *js.Value
}

func NewRecaptchaVerifier

func NewRecaptchaVerifier(
	container string,
	parameters map[string]interface{},
	app *firebaseapp.App,
) (*RecaptchaVerifier, error)

func (*RecaptchaVerifier) GetJSValue

func (self *RecaptchaVerifier) GetJSValue() *js.Value

type UserCredential

type UserCredential struct {
	JSValue *js.Value
}

func NewUserCredentialFromJSValue

func NewUserCredentialFromJSValue(jsvalue *js.Value) *UserCredential

func (*UserCredential) GetUser

func (self *UserCredential) GetUser() *firebase.User

Jump to

Keyboard shortcuts

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