MCPcopy Create free account
hub / github.com/Scalingo/cli / loginWithUserAndPassword

Function loginWithUserAndPassword

session/login.go:52–58  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

50}
51
52func loginWithUserAndPassword(ctx context.Context) error {
53 _, _, err := config.Auth(ctx)
54 if err != nil {
55 return errors.Wrap(ctx, err, "authenticate with username and password")
56 }
57 return nil
58}
59
60func loginWithToken(ctx context.Context, token string) error {
61 err := finalizeLogin(ctx, token)

Callers 1

LoginFunction · 0.85

Calls 1

AuthFunction · 0.92

Tested by

no test coverage detected