Browse Source

Add token auth

master
Gregory Rudolph 3 years ago
parent
commit
932d720986
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      login.go

1
login.go

@ -17,7 +17,6 @@ func login(ctx context.Context, username string, password string, tok string) (s @@ -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,
}),

Loading…
Cancel
Save