[#144] sdk/token: Use MarshalBinary to uuid of session token
Signed-off-by: Alex Vanin <alexey@nspcc.ru>remotes/KirillovDenis/feature/refactor-sig-rpc
parent
5fa271e141
commit
2a7e91fa13
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue