return bearer token
@@ -350,6 +350,7 @@ func AddAccount(lobby, username, password, otpSecret, universe, lang string, cli
if err != nil {
return newAccount, err
}
+ newAccount.BearerToken = postSessionsRes.Token
req.Header.Add("authorization", "Bearer "+postSessionsRes.Token)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept-Encoding", "gzip, deflate, br")
@@ -4303,6 +4304,7 @@ type NewAccount struct {
Language string
Number int
}
+ BearerToken string
Error string
}
