Add token auth

This commit is contained in:
2021-07-10 11:15:17 -04:00
parent 88e2c97fa5
commit 932d720986

View File

@ -17,7 +17,6 @@ func login(ctx context.Context, username string, password string, tok string) (s
if tok != "" {
client, err = tesla.NewClient(
ctx,
tesla.WithMFAHandler(noDevice),
tesla.WithToken(&oauth2.Token{
RefreshToken: tok,
}),