Files
galaxy-game/authsession/internal/ports/id_generator.go
T
2026-04-08 16:23:07 +02:00

14 lines
416 B
Go

package ports
import "galaxy/authsession/internal/domain/common"
// IDGenerator generates stable domain identifiers for new challenges and
// device sessions.
type IDGenerator interface {
// NewChallengeID returns a fresh challenge identifier.
NewChallengeID() (common.ChallengeID, error)
// NewDeviceSessionID returns a fresh device-session identifier.
NewDeviceSessionID() (common.DeviceSessionID, error)
}