(ctx context.Context)
| 50 | } |
| 51 | |
| 52 | func 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 | |
| 60 | func loginWithToken(ctx context.Context, token string) error { |
| 61 | err := finalizeLogin(ctx, token) |