mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-02 01:01:33 +02:00
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"`
|
|
}
|