Skip to content

Commit 3f6d935

Browse files
authored
fix: reveal new keys when loading from api (#3935)
1 parent 1d1b50e commit 3f6d935

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/utils/tenant/client.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/go-errors/errors"
88
"github.com/supabase/cli/internal/utils"
99
"github.com/supabase/cli/pkg/api"
10+
"github.com/supabase/cli/pkg/cast"
1011
"github.com/supabase/cli/pkg/fetcher"
1112
)
1213

@@ -67,7 +68,9 @@ func isServiceRole(key api.ApiKeyResponse) bool {
6768
}
6869

6970
func GetApiKeys(ctx context.Context, projectRef string) (ApiKey, error) {
70-
resp, err := utils.GetSupabase().V1GetProjectApiKeysWithResponse(ctx, projectRef, &api.V1GetProjectApiKeysParams{})
71+
resp, err := utils.GetSupabase().V1GetProjectApiKeysWithResponse(ctx, projectRef, &api.V1GetProjectApiKeysParams{
72+
Reveal: cast.Ptr(true),
73+
})
7174
if err != nil {
7275
return ApiKey{}, errors.Errorf("failed to get api keys: %w", err)
7376
}

0 commit comments

Comments
 (0)