MCPcopy Create free account
hub / github.com/daboigbae/react-native-template / constructor

Method constructor

template/src/api/client/client.ts:19–28  ·  view source on GitHub ↗
(
		authToken: string | undefined | null = " ",
		config: AxiosRequestConfig = {}
	)

Source from the content-addressed store, hash-verified

17
18 // constructor for the API client
19 constructor(
20 authToken: string | undefined | null = " ",
21 config: AxiosRequestConfig = {}
22 ) {
23 this.client = this._setupClient(config);
24
25 if (authToken) {
26 this.setBearerToken(authToken);
27 }
28 }
29
30 // Example API methods. Replace with your own API methods.
31

Callers

nothing calls this directly

Calls 2

_setupClientMethod · 0.95
setBearerTokenMethod · 0.95

Tested by

no test coverage detected