Documentation
¶
Index ¶
- Variables
- type Config
- type OptionsResponse
- type RegistrationMetadata
- type Service
- func (s *Service) BeginLogin(ctx context.Context) ([]byte, uuid.UUID, error)
- func (s *Service) BeginRegistration(ctx context.Context, userID uuid.UUID) ([]byte, uuid.UUID, error)
- func (s *Service) DeletePasskey(ctx context.Context, userID uuid.UUID, passkeyID uuid.UUID) error
- func (s *Service) FinishLogin(ctx context.Context, challengeID uuid.UUID, assertionResponseJSON []byte, ...) (domain.User, error)
- func (s *Service) FinishRegistration(ctx context.Context, userID uuid.UUID, challengeID uuid.UUID, ...) error
- func (s *Service) ListUserPasskeys(ctx context.Context, userID uuid.UUID) ([]domain.Passkey, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPasskeyNotFound = auth.ErrPasskeyNotFound ErrPasskeyAlreadyExists = auth.ErrPasskeyAlreadyExists ErrPasskeyRegistrationInvalid = auth.ErrPasskeyRegistrationInvalid ErrPasskeyAuthenticationInvalid = auth.ErrPasskeyAuthenticationInvalid ErrCannotRemoveLastAuthMethod = auth.ErrCannotRemoveLastAuthMethod ErrCannotRemoveLastAuthProvider = ErrCannotRemoveLastAuthMethod )
Functions ¶
This section is empty.
Types ¶
type OptionsResponse ¶
type OptionsResponse struct {
ChallengeID string `json:"challenge_id"`
Options json.RawMessage `json:"options"`
}
type RegistrationMetadata ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) BeginLogin ¶
func (*Service) BeginRegistration ¶
func (*Service) DeletePasskey ¶
func (*Service) FinishLogin ¶
func (*Service) FinishRegistration ¶
Click to show internal directories.
Click to hide internal directories.