Preparing search index...
The search index is not available
@gumhq/sdk
@gumhq/sdk
SessionTokenManager
Class SessionTokenManager
Hierarchy
SessionTokenManager
Index
Constructors
constructor
Properties
program
provider
Methods
get
Constructors
constructor
new
Session
Token
Manager
(
wallet
:
Wallet
, connection
:
Connection
, cluster
:
Cluster
|
"localnet"
)
:
SessionTokenManager
Parameters
wallet:
Wallet
connection:
Connection
cluster:
Cluster
|
"localnet"
Returns
SessionTokenManager
Properties
Readonly
program
program
:
Program
<
GplSession
>
Readonly
provider
provider
:
AnchorProvider
Methods
get
get
(
sessionAccount
:
PublicKey
)
:
Promise
<
DecodeStruct
<
{
fields
:
[
{
name
:
"authority"
;
type
:
"publicKey"
;
}
,
{
name
:
"targetProgram"
;
type
:
"publicKey"
;
}
,
{
name
:
"sessionSigner"
;
type
:
"publicKey"
;
}
,
{
name
:
"validUntil"
;
type
:
"i64"
;
}
]
;
kind
:
"struct"
;
}
,
DecodedHelper
<
{}
,
EmptyDefined
>
>
>
Parameters
sessionAccount:
PublicKey
Returns
Promise
<
DecodeStruct
<
{
fields
:
[
{
name
:
"authority"
;
type
:
"publicKey"
;
}
,
{
name
:
"targetProgram"
;
type
:
"publicKey"
;
}
,
{
name
:
"sessionSigner"
;
type
:
"publicKey"
;
}
,
{
name
:
"validUntil"
;
type
:
"i64"
;
}
]
;
kind
:
"struct"
;
}
,
DecodedHelper
<
{}
,
EmptyDefined
>
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Modules
@gumhq/sdk
Session
Token
Manager
constructor
program
provider
get
Generated using
TypeDoc