diff --git a/src/routes/main.cr b/src/routes/main.cr index eeab285..a2c3f48 100644 --- a/src/routes/main.cr +++ b/src/routes/main.cr @@ -26,6 +26,7 @@ class MainRouter < Router .not_nil! cookie = HTTP::Cookie.new "token", token + cookie.expires = Time.local.shift years: 1 env.response.cookies << cookie env.redirect "/" rescue