(ctx context.Context, user *scalingo.User, token string)
| 66 | } |
| 67 | |
| 68 | func SetCurrentUser(ctx context.Context, user *scalingo.User, token string) error { |
| 69 | authenticator := &CliAuthenticator{} |
| 70 | err := authenticator.StoreAuth(ctx, user, token) |
| 71 | if err != nil { |
| 72 | return errors.Wrapf(ctx, err, "store credentials") |
| 73 | } |
| 74 | return nil |
| 75 | } |
| 76 | |
| 77 | func (a *CliAuthenticator) StoreAuth(ctx context.Context, user *scalingo.User, token string) error { |
| 78 | authConfig, err := existingAuth(ctx) |
no test coverage detected