authservice

package
v0.0.0-...-aa00036 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	Collection string // user_auth
	Fw         *framework.Framework
}

check auth.route

func (AuthService) GetToken

func (Srv AuthService) GetToken(email string) (bool, *authmodel.AuthUserTokenModel)

Check if user exists by given email address

func (*AuthService) SaveToken

func (Srv *AuthService) SaveToken(ctx context.Context, token *tinytoken.TinyTokenData, email string, status string) (bool, int64)

func (*AuthService) SetTokenStatus

func (Srv *AuthService) SetTokenStatus(status string, email string) (bool, int64)

Jump to

Keyboard shortcuts

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