Skip to content

Commit

Permalink
Fix: writing cookies is not async
Browse files Browse the repository at this point in the history
  • Loading branch information
rhwd committed Apr 27, 2024
1 parent d45c36e commit 316b661
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/use_signed_cookies.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use axum_extra::extract::cookie::{Cookie, Key, SignedCookieJar};

pub async fn set_signed_cookie(key: String, value: String) -> SignedCookieJar{
let safe_key = Key::generate();
let jar = SignedCookieJar::new(safe_key);
jar.add(Cookie::new(key, value))
}
pub fn set_signed_cookie(key: String, value: String) -> SignedCookieJar {
let safe_key = Key::generate();
let jar = SignedCookieJar::new(safe_key);
jar.add(Cookie::new(key, value))
}

0 comments on commit 316b661

Please sign in to comment.