MCPcopy Create free account
hub / github.com/Botloader/botloader / del_session

Method del_session

components/stores/src/web.rs:217–223  ·  view source on GitHub ↗
(&self, token: &str)

Source from the content-addressed store, hash-verified

215 }
216
217 pub async fn del_session(&self, token: &str) -> Result<bool, Error> {
218 let res = sqlx::query!("DELETE FROM web_sessions WHERE token= $1", token,)
219 .execute(&self.pool)
220 .await?;
221
222 Ok(res.rows_affected() > 0)
223 }
224
225 pub async fn del_all_sessions(&self, user_id: Id<UserMarker>) -> Result<(), Error> {
226 sqlx::query!(

Callers 2

del_sessionFunction · 0.80
handle_logoutMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected