authentication

package
v0.0.0-...-1c0d007 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Client *auth.Client
}

Auth - Authenticationの構造体

func NewClient

func NewClient(ctx context.Context, app *firebase.App) (*Auth, error)

NewClient - Firebase Authenticationに接続

func (*Auth) CreateUser

func (a *Auth) CreateUser(ctx context.Context, email string, password string) (string, error)

CreateUser - 新しいFirebase Authenticationユーザーを作成

func (*Auth) DeleteUser

func (a *Auth) DeleteUser(ctx context.Context, uid string) error

DeleteUser - 既存のユーザーをuidで削除

func (*Auth) GetUIDByEmail

func (a *Auth) GetUIDByEmail(ctx context.Context, email string) (string, error)

GetUIDByEmail - メールアドレスによるユーザーUIDの取得

func (*Auth) UpdateUser

func (a *Auth) UpdateUser(ctx context.Context, uid string, email string, password string, disabled bool) error

UpdateUser - 既存のユーザーのデータを変更

func (*Auth) VerifyIDToken

func (a *Auth) VerifyIDToken(ctx context.Context, idToken string) (string, error)

VerifyIDToken - IDトークンを確認して、デコードされたトークンからデバイスのuidを取得

Jump to

Keyboard shortcuts

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