Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/internal/middleware/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ func NewCookieTempAuthn(token string, path string, cfg config.APIConfig) *fiber.
func NewWebAuthn(cfg config.APIConfig) *webauthn.WebAuthn {
var webAuthn *webauthn.WebAuthn
config := &webauthn.Config{
RPDisplayName: cfg.Name, // Display Name for your site
RPID: cfg.FQDN, // Generally the FQDN for your site
RPOrigins: []string{cfg.ApiAllowOrigin}, // The origin URLs allowed for WebAuthn requests
RPDisplayName: cfg.Name, // Display Name for your site
RPID: cfg.FQDN, // Generally the FQDN for your site
RPOrigins: strings.Split(cfg.ApiAllowOrigin, ","), // The origin URLs allowed for WebAuthn requests
}

webAuthn, err := webauthn.New(config)
Expand Down
Loading