Skip to content

Commit

Permalink
fix refresh tokens (#1253)
Browse files Browse the repository at this point in the history
* fix refresh tokens

* fix context key case

* add more context keys
  • Loading branch information
kushalmalani authored Jun 13, 2023
1 parent 63e93da commit a52f13f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 120 deletions.
41 changes: 0 additions & 41 deletions cmd/cloud/migration.go

This file was deleted.

75 changes: 0 additions & 75 deletions cmd/cloud/migration_test.go

This file was deleted.

17 changes: 13 additions & 4 deletions cmd/cloud/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ func Setup(cmd *cobra.Command, client astro.Client, coreClient astrocore.CoreCli
if err != nil {
return err
}
err = migrateCloudConfig(coreClient)
if err != nil {
return err
}

return nil
}

Expand Down Expand Up @@ -177,6 +174,18 @@ func checkToken(client astro.Client, coreClient astrocore.CoreClient, out io.Wri
if err != nil {
return err
}
err = c.SetContextKey("organization", c.Organization)
if err != nil {
return err
}
err = c.SetContextKey("organization_short_name", c.OrganizationShortName)
if err != nil {
return err
}
err = c.SetContextKey("organization_product", c.OrganizationProduct)
if err != nil {
return err
}
}
return nil
}
Expand Down

0 comments on commit a52f13f

Please sign in to comment.