diff --git a/internal/domain/device_auth.go b/internal/domain/device_auth.go index 79f30250f0..da076663aa 100644 --- a/internal/domain/device_auth.go +++ b/internal/domain/device_auth.go @@ -1,6 +1,7 @@ package domain import ( + "strconv" "time" "github.com/zitadel/zitadel/internal/eventstore/v1/models" @@ -55,6 +56,10 @@ func (s DeviceAuthState) Denied() bool { return s >= DeviceAuthStateDenied } +func (s DeviceAuthState) GoString() string { + return strconv.Itoa(int(s)) +} + // DeviceAuthCanceled is a subset of DeviceAuthState, allowed to // be used in the deviceauth.CanceledEvent. // The string type is used to make the eventstore more readable