2020-09-15 10:47:43 +00:00
|
|
|
package token
|
|
|
|
|
|
|
|
import (
|
2021-05-24 17:34:56 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/pkg/session"
|
2020-09-15 10:47:43 +00:00
|
|
|
)
|
|
|
|
|
2021-05-24 17:34:56 +00:00
|
|
|
// SessionToken represents NeoFS API v2-compatible
|
|
|
|
// session token.
|
2020-11-13 13:53:42 +00:00
|
|
|
//
|
2021-05-24 17:34:56 +00:00
|
|
|
// Deprecated: use session.Token instead
|
|
|
|
type SessionToken = session.Token
|
2020-11-13 13:53:42 +00:00
|
|
|
|
2021-05-24 17:34:56 +00:00
|
|
|
// NewSessionTokenFromV2 wraps session.SessionToken message structure
|
|
|
|
// into Token.
|
|
|
|
//
|
|
|
|
// Deprecated: use session.NewTokenFromV2 instead.
|
|
|
|
var NewSessionTokenFromV2 = session.NewTokenFromV2
|
2020-11-13 13:53:42 +00:00
|
|
|
|
2021-05-24 17:34:56 +00:00
|
|
|
// NewSessionToken creates and returns blank session token.
|
|
|
|
//
|
|
|
|
// Deprecated: use session.NewToken instead.
|
|
|
|
var NewSessionToken = session.NewToken
|