A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.

24 hour expire is too aggressive

Changed files
+1 -1
src
+1 -1
src/models.rs
···
.duration_since(UNIX_EPOCH)
.unwrap()
.as_secs() as usize
-
+ 24 * 60 * 60; // 24 hours from now
Self { sub: user_id, exp }
}
···
.duration_since(UNIX_EPOCH)
.unwrap()
.as_secs() as usize
+
+ 14 * 24 * 60 * 60; // 2 weeks from now
Self { sub: user_id, exp }
}