Skip to content

Commit

Permalink
remove OKTETO_TOKEN warning (#769)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
  • Loading branch information
rberrelleza committed Mar 20, 2020
1 parent 2062e42 commit e3c2fb5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/okteto/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ func authUserLegacy(ctx context.Context, client *graphql.Client, code string) (*
//GetToken returns the token of the authenticated user
func GetToken() (*Token, error) {
if currentToken == nil {
if len(os.Getenv("OKTETO_TOKEN")) > 0 {
return nil, fmt.Errorf("OKTETO_TOKEN is now deprecated, use the `okteto login --token` command instead")
}

p := getTokenPath()

b, err := ioutil.ReadFile(p)
Expand Down

0 comments on commit e3c2fb5

Please sign in to comment.