diff options
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/auth.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/auth.rs b/src/routes/auth.rs index 979e617..ab7a393 100644 --- a/src/routes/auth.rs +++ b/src/routes/auth.rs @@ -111,6 +111,12 @@ pub async fn login( Ok(jar.add(cookie)) } +pub async fn logout( + jar: CookieJar, +) -> Result<impl IntoResponse, RouteError> { + Ok(jar.remove(Cookie::from("token"))) +} + #[cfg(test)] mod tests { use super::*; |
