MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / ValidateToken

Method ValidateToken

api/client.go:187–193  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

185}
186
187func (c *Client) ValidateToken(ctx context.Context) (*ValidateTokenResult, error) {
188 var result ValidateTokenResult
189 if err := c.doRequest(ctx, "GET", "/v1/auth/validate", nil, &result); err != nil {
190 return nil, err
191 }
192 return &result, nil
193}
194
195// GetSubscriptionStatusCtx returns the caller's Stripe subscription status
196// (e.g. "active", "past_due", "canceled") from /v1/user-data.

Callers 3

runLoginFunction · 0.95
runInteractiveLoginFunction · 0.95

Calls 1

doRequestMethod · 0.95

Tested by 1