Skip to content

Commit

Permalink
Lower session's default expires_at value (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Sep 14, 2024
1 parent b87f269 commit 2609259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slot/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ use crate::{browser, server::LocalServer, vars};
const GUARDIAN: Felt = short_string!("CARTRIDGE_GUARDIAN");
pub const SESSION_GUARDIAN_SIGNING_KEY: SigningKey = SigningKey::from_secret_scalar(GUARDIAN);

// Taken from: https://github.com/cartridge-gg/controller/blob/046f3b98f410f71e4d14b8f40efaae57f6c5483e/packages/keychain/src/components/connect/CreateSession.tsx#L24
const DEFAULT_SESSION_EXPIRES_AT: u64 = 3000000000;
// Taken from: https://github.com/cartridge-gg/controller/blob/b2c6ed8fcbabdc2e40176ce9955e155c662a9f1c/packages/keychain/src/const.ts#L2C1-L2C47
const DEFAULT_SESSION_EXPIRES_AT: u64 = 1727776800;
const SESSION_CREATION_PATH: &str = "/session";
const SESSION_FILE_BASE_NAME: &str = "session.json";

Expand Down

0 comments on commit 2609259

Please sign in to comment.