MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / CLIAuthSessionStatus

Struct CLIAuthSessionStatus

internal/cli/client.go:990–994  ·  view source on GitHub ↗

CLIAuthSessionStatus is the response from GET /auth/cli/sessions/{code}.

Source from the content-addressed store, hash-verified

988
989// CLIAuthSessionStatus is the response from GET /auth/cli/sessions/{code}.
990type CLIAuthSessionStatus struct {
991 Status string `json:"status"` // "pending", "approved", "expired"
992 Token string `json:"token,omitempty"`
993 User LoginUser `json:"user,omitempty"`
994}
995
996// CreateCLIAuthSession creates a new pending CLI auth session.
997func (c *Client) CreateCLIAuthSession() (*CLIAuthSessionResponse, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected