From 84ba0823345f325c98a4581e3c37813ed2cae61c Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sun, 2 Feb 2020 13:41:00 -0700 Subject: [PATCH] set token and userid after initial login --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index ed1d3e3..927ee2e 100644 --- a/main.go +++ b/main.go @@ -90,6 +90,9 @@ func main() { store.set("account", "username", username) store.set("account", "access_token", resp.AccessToken) store.set("account", "user_id", resp.UserID) + + accessToken = resp.AccessToken + userID = resp.UserID } else { username, _ = store.get("account", "username") accessToken, _ = store.get("account", "access_token")