pub enum SlidingRefresh {
UpdatedAt,
ExpiresAt,
}Expand description
When the sliding refresh extends a session’s expiry to expires_in from now.
Variants§
UpdatedAt
Once update_age has passed since the session row’s updated_at (the default).
ExpiresAt
Once update_age has passed since the expiry was last set, read from expires_at
(expires_at - expires_in + update_age <= now): Better Auth’s rule. Better Auth moves
updatedAt on every change to a session (an active organization, say), so on a
database it shares, updated_at doesn’t say when the session was last extended.
A session counts as a rememberMe: false one, never extended, when it was created to
last one day or less (expires_at - created_at), as well as by its marker cookie.
Trait Implementations§
Source§impl Clone for SlidingRefresh
impl Clone for SlidingRefresh
impl Copy for SlidingRefresh
Source§impl Debug for SlidingRefresh
impl Debug for SlidingRefresh
Source§impl Default for SlidingRefresh
impl Default for SlidingRefresh
impl Eq for SlidingRefresh
Source§impl PartialEq for SlidingRefresh
impl PartialEq for SlidingRefresh
impl StructuralPartialEq for SlidingRefresh
Auto Trait Implementations§
impl Forget for SlidingRefresh
impl Freeze for SlidingRefresh
impl Move for SlidingRefresh
impl RefUnwindSafe for SlidingRefresh
impl Send for SlidingRefresh
impl Sync for SlidingRefresh
impl Unpin for SlidingRefresh
impl UnsafeUnpin for SlidingRefresh
impl UnwindSafe for SlidingRefresh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more