services

package
v0.0.0-...-91c8016 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSVC

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

func NewAuthService

func NewAuthService(ctx context.Context, uri string) (userSvc *AuthSVC, err error)

NewAuthService Auth service object initializer

func (*AuthSVC) GetUserAccountSecret

func (as *AuthSVC) GetUserAccountSecret(ctx context.Context) (string, error)

func (*AuthSVC) ValidatePassword

func (as *AuthSVC) ValidatePassword(ctx context.Context, password, hashedPassword string) error

type FirebaseAuthSvc

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

func NewFirebaseAuthService

func NewFirebaseAuthService(ctx context.Context) (authSvc *FirebaseAuthSvc, err error)

func (*FirebaseAuthSvc) C

func (*FirebaseAuthSvc) CreateToken

func (a *FirebaseAuthSvc) CreateToken(ctx context.Context, uid, credentialId string) (token model.TFirebaseExchangeTokenResp, err error)

func (*FirebaseAuthSvc) ExchangeCustomToken

func (a *FirebaseAuthSvc) ExchangeCustomToken(customToken string) (token model.TFirebaseExchangeTokenResp, err error)

func (*FirebaseAuthSvc) GetUserRecord

func (a *FirebaseAuthSvc) GetUserRecord(ctx context.Context, uid string) (*FirebaseAuth.UserRecord, error)

func (*FirebaseAuthSvc) RefreshToken

func (a *FirebaseAuthSvc) RefreshToken(refreshToken string) (token model.TFirebaseRefreshTokenResp, err error)

func (*FirebaseAuthSvc) RevokeRefreshTokens

func (a *FirebaseAuthSvc) RevokeRefreshTokens(ctx context.Context, idToken string) error

type UserSvc

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

func NewUserService

func NewUserService(ctx context.Context, uri string) (userSvc *UserSvc, err error)

NewUserService User service object initializer

func (*UserSvc) CreateUser

func (us *UserSvc) CreateUser(ctx context.Context, uid string, userPayload model.TCreateUserReq) error

func (*UserSvc) DeleteUser

func (us *UserSvc) DeleteUser(ctx context.Context, uid string) error

func (*UserSvc) GetUser

func (us *UserSvc) GetUser(ctx context.Context, uid string) (model.TGetUserResp, error)

func (*UserSvc) GetUserLoginInfo

func (us *UserSvc) GetUserLoginInfo(ctx context.Context, loginReq model.TLoginReq, userResult *model.TUser) (err error)

func (*UserSvc) UpdateUser

func (us *UserSvc) UpdateUser(ctx context.Context, uid string, profile model.TUpdateUserReq) error

Jump to

Keyboard shortcuts

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