set token and userid after initial login
This commit is contained in:
parent
10a5e5eecf
commit
84ba082334
3
main.go
3
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")
|
||||
|
Loading…
Reference in New Issue
Block a user