refactor: move gateway package to app directory

This commit is contained in:
Prad Nukala
2024-12-09 18:34:38 -05:00
parent 67432d3fdf
commit f250082fff
32 changed files with 13 additions and 13 deletions
@@ -0,0 +1,20 @@
package register
import (
"github.com/a-h/templ"
"github.com/go-webauthn/webauthn/protocol"
)
type LinkCredentialRequest struct {
Platform string `json:"platform"`
Handle string `json:"handle"`
DeviceModel string `json:"deviceModel"`
Architecture string `json:"architecture"`
Address string `json:"address"`
RegisterOptions protocol.PublicKeyCredentialCreationOptions `json:"registerOptions"`
}
func (r LinkCredentialRequest) GetCredentialOptions() string {
opts, _ := templ.JSONString(r.RegisterOptions)
return opts
}