Documentation
¶
Index ¶
- Variables
- func Module() fx.Option
- type Config
- type Mode
- type OneTimeCode
- type Service
- func (s *Service) AuthorizeDevice(token string) (models.Device, error)
- func (s *Service) AuthorizeRegistration(token string) error
- func (s *Service) AuthorizeUserByCode(code string) (*users.User, error)
- func (s *Service) GenerateUserCode(userID string) (OneTimeCode, error)
- func (s *Service) IsPublic() bool
- func (s *Service) RegisterDevice(user users.User, name, pushToken *string) (*models.Device, error)
- func (s *Service) Run(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAuthorizationFailed = errors.New("authorization failed")
)
Functions ¶
Types ¶
type OneTimeCode ¶ added in v1.34.3
OneTimeCode is a one-time user authorization code.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AuthorizeDevice ¶
func (*Service) AuthorizeRegistration ¶
func (*Service) AuthorizeUserByCode ¶ added in v1.19.0
AuthorizeUserByCode authorizes a user by one-time code.
func (*Service) GenerateUserCode ¶ added in v1.19.0
func (s *Service) GenerateUserCode(userID string) (OneTimeCode, error)
GenerateUserCode generates a unique one-time user authorization code.
func (*Service) RegisterDevice ¶
Click to show internal directories.
Click to hide internal directories.