MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / constructor

Method constructor

packages/cli/src/auth/client.ts:97–101  ·  view source on GitHub ↗
(opts: AuthClientOptions = {})

Source from the content-addressed store, hash-verified

95 private readonly onRefresh?: (refresh_token: string) => Promise<OAuthTokens>;
96
97 constructor(opts: AuthClientOptions = {}) {
98 this.base = (opts.baseUrl ?? apiBaseUrl()).replace(/\/+$/, "");
99 this.fetchImpl = opts.fetchImpl ?? fetch;
100 this.onRefresh = opts.onUnauthenticatedRefresh;
101 }
102
103 /**
104 * `GET /v3/users/me`. Throws `ErrUnauthenticated` on 401, `ErrApi`

Callers

nothing calls this directly

Calls 1

apiBaseUrlFunction · 0.85

Tested by

no test coverage detected