feat: implement passkey-based authentication

This commit is contained in:
Prad Nukala
2024-12-10 13:12:08 -05:00
parent dc6f02a000
commit f366dd8cf2
35 changed files with 751 additions and 1039 deletions
@@ -0,0 +1,32 @@
package register
import (
"github.com/onsonr/sonr/pkg/common/styles/layout"
"github.com/onsonr/sonr/pkg/common/styles/text"
)
templ ProfileFormView(data CreateProfileData) {
@layout.Root("Create Profile | Sonr.ID") {
@layout.Container() {
@text.Header("Basic Info", "Tell us a little about yourself.")
@formCreateProfile("/register/start", "POST", data)
}
}
}
templ LinkCredentialView(data RegisterPasskeyData) {
@layout.Root("Register | Sonr.ID") {
@layout.Container() {
@text.Header("Link a PassKey", "This will be used to login to your vault.")
@formRegisterPasskey("/register/finish", "POST", data)
}
}
}
templ LoadingVaultView() {
@layout.Root("Loading... | Sonr.ID") {
@layout.Container() {
@text.Header("Loading Vault", "This will be used to login to your vault.")
}
}
}