mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
Merge pull request #94 from sify21/use-cookie-time-unit
time unit of cookie's max-age is actually millisecond
This commit is contained in:
commit
e9add5ada4
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