mirror of
https://github.com/pfzetto/axum-oidc.git
synced 2025-12-07 16:35:17 +01:00
set refresh_token to None when ClearSessionFlag is set
This commit is contained in:
parent
af03d32d1c
commit
c5e83655bc
1 changed files with 1 additions and 0 deletions
|
|
@ -298,6 +298,7 @@ where
|
|||
let has_logout_ext = response.extensions().get::<ClearSessionFlag>().is_some();
|
||||
if let (true, Some(mut login_session)) = (has_logout_ext, login_session) {
|
||||
login_session.authenticated = None;
|
||||
login_session.refresh_token = None;
|
||||
session.insert(SESSION_KEY, login_session).await?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue