14 lines
416 B
Go
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)
|
|
}
|