set token and userid after initial login

This commit is contained in:
Aaron Bieber 2020-02-02 13:41:00 -07:00
parent 10a5e5eecf
commit 84ba082334

View File

@ -90,6 +90,9 @@ func main() {
store.set("account", "username", username) store.set("account", "username", username)
store.set("account", "access_token", resp.AccessToken) store.set("account", "access_token", resp.AccessToken)
store.set("account", "user_id", resp.UserID) store.set("account", "user_id", resp.UserID)
accessToken = resp.AccessToken
userID = resp.UserID
} else { } else {
username, _ = store.get("account", "username") username, _ = store.get("account", "username")
accessToken, _ = store.get("account", "access_token") accessToken, _ = store.get("account", "access_token")