ENsure session is completely clearer when invalidated

Closes #1314
This commit is contained in:
Tobie Morgan Hitchcock 2022-10-04 22:03:40 +01:00
parent 0467b7f04a
commit 90a5e82e72

View file

@ -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(())
}