webauthn

package
v0.0.0-...-4648e5f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebAuthnService

type WebAuthnService struct {
	WebAuthn  *webauthn.WebAuthn
	UserStore models.UserStore
}

func NewWebAuthnService

func NewWebAuthnService(webAuthnConfig *webauthn.Config, userStore models.UserStore) (*WebAuthnService, error)

func (*WebAuthnService) BeginLogin

func (s *WebAuthnService) BeginLogin(userID string) (interface{}, error)

func (*WebAuthnService) BeginRegistration

func (s *WebAuthnService) BeginRegistration(userID string) (interface{}, error)

func (*WebAuthnService) FinishLogin

func (s *WebAuthnService) FinishLogin(userID string, response *http.Request) error

func (*WebAuthnService) FinishRegistration

func (s *WebAuthnService) FinishRegistration(userID string, response *http.Request) error

Jump to

Keyboard shortcuts

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