package port import ( "context" "github.com/google/uuid" "time" ) type Passwords interface { Hash(string) (string, error) Verify(string, string) bool } type Sessions interface { Credentials(context.Context, string) (uuid.UUID, string, error) CreateSession(context.Context, string, uuid.UUID, time.Time) error AuthenticateSession(context.Context, string) (uuid.UUID, error) RevokeSession(context.Context, string) error }