login

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserID = "user_id"
)

Variables

This section is empty.

Functions

func NewAccountStorage

func NewAccountStorage(client *firestore.Client) *storage

func NewMockStorage

func NewMockStorage() *mock

Types

type AccountInfo

type AccountInfo struct {
	Password string `firestore:"password"`
	UserID   string `firestore:"user_id"`
}

type Service

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

func NewLoginService

func NewLoginService(loginService accountsStorage, jWtService tokenizer) *Service

func (*Service) Authorization

func (s *Service) Authorization() gin.HandlerFunc

func (*Service) PostAuthToken

func (s *Service) PostAuthToken(c *gin.Context)

Jump to

Keyboard shortcuts

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