mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
18f761d404
Revert "fix: REVERT register Passkey API v2"
30 lines
651 B
Go
30 lines
651 B
Go
package domain
|
|
|
|
import "io"
|
|
|
|
type PasskeyURLData struct {
|
|
UserID string
|
|
OrgID string
|
|
CodeID string
|
|
Code string
|
|
}
|
|
|
|
// RenderPasskeyURLTemplate parses and renders tmpl.
|
|
// userID, orgID, codeID and code are passed into the [PasskeyURLData].
|
|
func RenderPasskeyURLTemplate(w io.Writer, tmpl, userID, orgID, codeID, code string) error {
|
|
return renderURLTemplate(w, tmpl, &PasskeyURLData{userID, orgID, codeID, code})
|
|
}
|
|
|
|
type PasskeyCodeDetails struct {
|
|
*ObjectDetails
|
|
CodeID string
|
|
Code string
|
|
}
|
|
|
|
type PasskeyRegistrationDetails struct {
|
|
*ObjectDetails
|
|
|
|
PasskeyID string
|
|
PublicKeyCredentialCreationOptions []byte
|
|
}
|