Search
Preparing search index...
The search index is not available
Home
SessionService
Class SessionService
Hierarchy
Service
SessionService
Index
Constructors
constructor
Accessors
headers
session
Ttl
Methods
create
Session
destroy
init
refresh
Session
verify
Session
Constructors
constructor
new
Session
Service
(
options
?:
SessionOptions
)
:
SessionService
Parameters
Default value
options:
SessionOptions
= {}
Returns
SessionService
Accessors
headers
get
headers
(
)
:
{}
Returns
{}
[
key:
string
]:
any
session
Ttl
get
sessionTtl
(
)
:
number
Returns
number
Methods
create
Session
create
Session
(
ttl
?:
number
, fcmToken
?:
string
)
:
Promise
<
Session
>
Parameters
Optional
ttl:
number
Optional
fcmToken:
string
Returns
Promise
<
Session
>
destroy
destroy
(
)
:
void
Returns
void
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
refresh
Session
refresh
Session
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
verify
Session
verify
Session
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Globals
Session
Service
constructor
headers
session
Ttl
create
Session
destroy
init
refresh
Session
verify
Session