mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
time unit of cookie's max-age is actually millisecond
Signed-off-by: 司芳源 <sify21@163.com>
This commit is contained in:
parent
6d054cfe5a
commit
1a4683eb73
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ where
|
||||||
/// Options for [`use_cookie_with_options`].
|
/// Options for [`use_cookie_with_options`].
|
||||||
#[derive(DefaultBuilder)]
|
#[derive(DefaultBuilder)]
|
||||||
pub struct UseCookieOptions<T, Err> {
|
pub struct UseCookieOptions<T, Err> {
|
||||||
/// [`Max-Age` of the cookie](https://tools.ietf.org/html/rfc6265#section-5.2.2) in seconds. The returned signal will turn to `None` after the max age is reached.
|
/// [`Max-Age` of the cookie](https://tools.ietf.org/html/rfc6265#section-5.2.2) in milliseconds. The returned signal will turn to `None` after the max age is reached.
|
||||||
/// Default: `None`
|
/// Default: `None`
|
||||||
///
|
///
|
||||||
/// > The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states
|
/// > The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states
|
||||||
|
|
Loading…
Add table
Reference in a new issue