Preparing search index...
The search index is not available
cardstack
cardstack
@cardstack/cardpay-sdk
HubAuthClass
Class HubAuthClass
Hierarchy
HubAuthClass
Implements
IHubAuth
Index
Constructors
constructor
Properties
web3
Or
Ethers
Provider
hub
Root
Url?
layer2
Signer?
Methods
check
Valid
Auth
get
Nonce
authenticate
http
Get
Session
get
Hub
Url
Constructors
constructor
new
Hub
Auth
Class
(
web3OrEthersProvider
:
JsonRpcProvider
|
default
, hubRootUrl
?:
string
, layer2Signer
?:
Signer
)
:
HubAuthClass
Parameters
web3OrEthersProvider:
JsonRpcProvider
|
default
Optional
hubRootUrl:
string
Optional
layer2Signer:
Signer
Returns
HubAuthClass
Properties
Private
web3
Or
Ethers
Provider
web3
Or
Ethers
Provider
:
JsonRpcProvider
|
default
Private
Optional
hub
Root
Url
hub
Root
Url
?:
string
Private
Optional
layer2
Signer
layer2
Signer
?:
Signer
Methods
check
Valid
Auth
check
Valid
Auth
(
authToken
:
string
)
:
Promise
<
boolean
>
Parameters
authToken:
string
Returns
Promise
<
boolean
>
get
Nonce
get
Nonce
(
)
:
Promise
<
NonceResponse
>
Returns
Promise
<
NonceResponse
>
authenticate
authenticate
(
contractOptions
?:
ContractOptions
)
:
Promise
<
string
>
Parameters
Optional
contractOptions:
ContractOptions
Returns
Promise
<
string
>
Private
http
Get
Session
http
Get
Session
(
authToken
?:
string
)
:
Promise
<
Response
>
Parameters
Optional
authToken:
string
Returns
Promise
<
Response
>
get
Hub
Url
get
Hub
Url
(
network
?:
string
)
:
Promise
<
string
>
Parameters
Optional
network:
string
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
cardstack
@cardstack/cardpay-
sdk -
v1.0.53
@cardstack/db -
v1.0.53
@cardstack/di -
v1.0.53
@cardstack/did-
resolver -
v1.0.53
@cardstack/discord-
bot -
v1.0.53
@cardstack/wc-
provider -
v1.0.53
Hub
Auth
Class
constructor
web3
Or
Ethers
Provider
hub
Root
Url?
layer2
Signer?
check
Valid
Auth
get
Nonce
authenticate
http
Get
Session
get
Hub
Url
Generated using
TypeDoc