Preparing search index...
The search index is not available
Remix Utils - v8.0.0
Remix Utils
server/typed-session
TypedSessionStorage
Interface TypedSessionStorage<Schema>
interface
TypedSessionStorage
<
Schema
extends
z.ZodTypeAny
>
{
commitSession
(
session
:
TypedSession
<
Schema
>
,
options
?:
SerializeOptions
,
)
:
Promise
<
string
>
;
destroySession
(
session
:
TypedSession
<
Schema
>
,
options
?:
SerializeOptions
,
)
:
Promise
<
string
>
;
getSession
(
cookieHeader
?:
null
|
string
,
options
?:
ParseOptions
,
)
:
Promise
<
TypedSession
<
Schema
>
>
;
}
Type Parameters
Schema
extends
z.ZodTypeAny
Index
Methods
commit
Session
destroy
Session
get
Session
Methods
commit
Session
commitSession
(
session
:
TypedSession
<
Schema
>
,
options
?:
SerializeOptions
,
)
:
Promise
<
string
>
Parameters
session
:
TypedSession
<
Schema
>
Optional
options
:
SerializeOptions
Returns
Promise
<
string
>
destroy
Session
destroySession
(
session
:
TypedSession
<
Schema
>
,
options
?:
SerializeOptions
,
)
:
Promise
<
string
>
Parameters
session
:
TypedSession
<
Schema
>
Optional
options
:
SerializeOptions
Returns
Promise
<
string
>
get
Session
getSession
(
cookieHeader
?:
null
|
string
,
options
?:
ParseOptions
,
)
:
Promise
<
TypedSession
<
Schema
>
>
Parameters
Optional
cookieHeader
:
null
|
string
Optional
options
:
ParseOptions
Returns
Promise
<
TypedSession
<
Schema
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
commit
Session
destroy
Session
get
Session
Remix Utils - v8.0.0
Loading...