Documentation
¶
Index ¶
- Variables
- func Module() fx.Option
- type Config
- type Mode
- type Service
- func (s *Service) AuthorizeDevice(token string) (models.Device, error)
- func (s *Service) AuthorizeRegistration(token string) error
- func (s *Service) AuthorizeUserByCode(ctx context.Context, code string) (*users.User, error)
- func (s *Service) GenerateUserCode(ctx context.Context, userID string) (*otp.Code, error)
- func (s *Service) IsPublic() bool
- func (s *Service) RegisterDevice(user users.User, name, pushToken *string) (*models.Device, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAuthorizationFailed = errors.New("authorization failed")
)
Functions ¶
Types ¶
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
GenerateUserCode generates a unique one-time user authorization code.
Click to show internal directories.
Click to hide internal directories.