summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 87480e12..30ed33be 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -155,6 +155,10 @@ before_all do |env|
client = make_client(YT_URL)
user = get_user(sid, client, headers, PG_DB, false)
+ challenge, token = create_response(user.email, "sign_out", HMAC_KEY, 1.week)
+ env.set "challenge", challenge
+ env.set "token", token
+
env.set "user", user
env.set "sid", sid
rescue ex