mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-08-24 21:17:31 +00:00
Co-authored-by: Elias Schneider <login@eliasschneider.com>
19 lines
421 B
Go
19 lines
421 B
Go
package onetimeaccess
|
|
|
|
import (
|
|
"github.com/pocket-id/pocket-id/backend/internal/utils"
|
|
)
|
|
|
|
type tokenCreateDto struct {
|
|
TTL utils.JSONDuration `json:"ttl" binding:"ttl"`
|
|
}
|
|
|
|
type emailAsUnauthenticatedUserDto struct {
|
|
Email string `json:"email" binding:"required,email" unorm:"nfc"`
|
|
RedirectPath string `json:"redirectPath"`
|
|
}
|
|
|
|
type emailAsAdminDto struct {
|
|
TTL utils.JSONDuration `json:"ttl" binding:"ttl"`
|
|
}
|