From 90a5e82e72296bbe14bb9a8475b6c7fe797496ad Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 4 Oct 2022 22:03:40 +0100 Subject: [PATCH] ENsure session is completely clearer when invalidated Closes #1314 --- src/iam/clear.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iam/clear.rs b/src/iam/clear.rs index 70ebf305..dac5e57d 100644 --- a/src/iam/clear.rs +++ b/src/iam/clear.rs @@ -5,5 +5,8 @@ use surrealdb::Session; pub async fn clear(session: &mut Session) -> Result<(), Error> { session.au = Arc::new(Auth::No); + session.tk = None; + session.sc = None; + session.sd = None; Ok(()) }