Implemented logout

This commit is contained in:
2026-07-10 02:41:31 +03:00
parent 5aa6e30c90
commit 0f7925b56c
5 changed files with 62 additions and 4 deletions
@@ -40,4 +40,8 @@ class SessionsController @Inject()(controllerComponents: ControllerComponents, u
}
)
}
def logout = Action.andThen(new AuthenticatedAction(authTokensDAO)).async { request =>
authTokensDAO.destroy(request.token).map{ _ => Ok("") }
}
}