• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 18904571059

29 Oct 2025 10:20AM UTC coverage: 54.678% (-0.05%) from 54.728%
18904571059

Pull #4382

github

web-flow
Merge d704a84ab into 891a5df91
Pull Request #4382: feat: support login with snap locally

2 of 9 new or added lines in 1 file covered. (22.22%)

5 existing lines in 1 file now uncovered.

6388 of 11683 relevant lines covered (54.68%)

6.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

56.25
/internal/utils/flags/config_path.go
1
package flags
2

3
import (
4
        "strings"
5

6
        "github.com/spf13/afero"
7
        "github.com/supabase/cli/internal/utils"
8
)
9

10
func LoadConfig(fsys afero.Fs) error {
59✔
11
        utils.Config.ProjectId = ProjectRef
59✔
12
        if err := utils.Config.Load("", utils.NewRootFS(fsys)); err != nil {
66✔
13
                return err
7✔
14
        }
7✔
15
        utils.UpdateDockerIds()
52✔
16
        // Apply profile specific overrides
52✔
17
        if strings.EqualFold(utils.CurrentProfile.Name, "snap") {
52✔
NEW
18
                ext := utils.Config.Auth.External["snapchat"]
×
NEW
19
                ext.Enabled = true
×
NEW
20
                ext.ClientId = utils.CurrentProfile.AuthClientID
×
NEW
21
                // Any dummy value should work for local dev
×
NEW
22
                ext.Secret.Value = utils.CurrentProfile.AuthClientID
×
NEW
23
                utils.Config.Auth.External["snapchat"] = ext
×
NEW
24
        }
×
25
        return nil
52✔
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc