diff --git a/pkg/token/session.go b/pkg/token/session.go index eec6fd32..450a9a70 100644 --- a/pkg/token/session.go +++ b/pkg/token/session.go @@ -31,5 +31,10 @@ func (s SessionToken) SessionKey() []byte { } func (s SessionToken) ID() []byte { - return s.id[:] + data, err := s.id.MarshalBinary() + if err != nil { + panic(err) // must never panic + } + + return data }