package config type WebAuthnConfig struct { RelyingParty WebAuthnRelyingPartyConfig `yaml:"relyingParty" envPrefix:"RELYINGPARTY_"` } type WebAuthnRelyingPartyConfig struct { ID string `yaml:"id" env:"ID"` DisplayName string `yaml:"displayName" env:"DISPLAYNAME"` Origins []string `yaml:"origins" env:"ORIGINS" envSeparator:","` } func NewDefaultWebAuthnConfig() WebAuthnConfig { return WebAuthnConfig{ RelyingParty: WebAuthnRelyingPartyConfig{ ID: "localhost", DisplayName: "WebAuthn", Origins: []string{"http://localhost:3000"}, }, } }