Files
hanko/backend/dto/passcode.go
bjoern-m ca62cf421f feat: introduce hanko profile element and related api changes (#495)
* feat: introduce hanko profile element and related api changes
2023-01-25 10:55:23 +01:00

20 lines
436 B
Go

package dto
import "time"
type PasscodeFinishRequest struct {
Id string `json:"id" validate:"required,uuid4"`
Code string `json:"code" validate:"required"`
}
type PasscodeInitRequest struct {
UserId string `json:"user_id" validate:"required,uuid4"`
EmailId *string `json:"email_id"`
}
type PasscodeReturn struct {
Id string `json:"id"`
TTL int `json:"ttl"`
CreatedAt time.Time `json:"created_at"`
}