feat: authsession service
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user