MCPcopy Create free account
hub / github.com/anchordotdev/cli / GenerateUserFlowCodes

Method GenerateUserFlowCodes

api/api.go:288–299  ·  view source on GitHub ↗
(ctx context.Context, source string)

Source from the content-addressed store, hash-verified

286}
287
288func (s *Session) GenerateUserFlowCodes(ctx context.Context, source string) (*AuthCliCodesResponse, error) {
289 var codes AuthCliCodesResponse
290 if err := s.post(ctx, "/cli/codes", nil, &codes); err != nil {
291 return nil, err
292 }
293
294 // TODO: should the request POST the signup source instead?
295 if source != "" {
296 codes.VerificationUri += "?signup_src=" + source
297 }
298 return &codes, nil
299}
300
301func (s *Session) GetOrgs(ctx context.Context) ([]Organization, error) {
302 var orgs Organizations

Callers 1

RunTUIMethod · 0.80

Calls 1

postMethod · 0.95

Tested by

no test coverage detected