identity

package
v0.0.0-...-f3f4c76 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package identity that handles signup, reset password, verification of email etc. This is an admin package be careful while using these functions .....

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDP

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

IDP ... client managing email/password related authorization

func NewIDPEP

func NewIDPEP(ctx context.Context, projectID string) (*IDP, error)

NewIDPEP .... intializes firebase auth which will do al sorts of authn/authz

func (*IDP) GetUserByEmail

func (id *IDP) GetUserByEmail(ctx context.Context, email string) (*auth.UserRecord, error)

GetUserByEmail ...

func (*IDP) ResetUserPassword

func (id *IDP) ResetUserPassword(ctx context.Context, email string) error

ResetUserPassword ...

func (*IDP) VerifyUserToken

func (id *IDP) VerifyUserToken(ctx context.Context, idToken string) (*auth.Token, error)

VerifyUserToken ....

Jump to

Keyboard shortcuts

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