1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-24 23:01:05 +03:00

Use axum-extra's PrivateCookieJar

This commit is contained in:
Quentin Gliech
2022-04-29 14:56:06 +02:00
parent 9681948aa8
commit 3a83c5b3bf
18 changed files with 50 additions and 124 deletions

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use cookie::Cookie;
use axum_extra::extract::cookie::{Cookie, PrivateCookieJar};
use mas_data_model::BrowserSession;
use mas_storage::{
user::{lookup_active_session, ActiveSessionLookupError},
@@ -21,7 +21,7 @@ use mas_storage::{
use serde::{Deserialize, Serialize};
use sqlx::{Executor, Postgres};
use crate::{CookieExt, PrivateCookieJar};
use crate::CookieExt;
/// An encrypted cookie to save the session ID
#[derive(Serialize, Deserialize, Debug, Default)]