Skip to content

Commit

Permalink
Fixes davidgraeff#28 davidgraeff#28, allow cookie greater than sixty …
Browse files Browse the repository at this point in the history
…minutes.

Signed-off-by: Adam Evans <[email protected]>
  • Loading branch information
forficate committed Aug 31, 2021
1 parent d7d3e45 commit 3de9d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sessions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ pub mod session_cookie {
duration: chrono::Duration,
) -> Result<String, FirebaseError> {
// Generate the assertion from the admin credentials
let assertion = crate::jwt::session_cookie::create_jwt_encoded(credentials, duration)?;
let assertion = crate::jwt::session_cookie::create_jwt_encoded(credentials, chrono::Duration::minutes(1))?;

// Request Google Oauth2 to retrieve the access token in order to create a session cookie
let client = reqwest::blocking::Client::new();
Expand Down

0 comments on commit 3de9d7f

Please sign in to comment.