blob: 0f603da32a9e25c5b10811abd03193d7dba04ca2 (
plain)
1
2
3
4
5
6
|
pub const DB_FILE_NAME: &str = "notes.db";
pub const DB_SCHEMA_VERSION: i64 = 1;
pub const LOGIN_TOKEN_EXPIRE_SECS: i64 = 40 * 24 * 3600;
/// Upon a request less than this before the expiration time, the token is refreshed.
pub const LOGIN_TOKEN_REFRESH_MARGIN: i64 = 20 * 24 * 3600;
|