MCPcopy Create free account
hub / github.com/IsaacInsoll/PICR / getUserHeader

Function getUserHeader

tests/api/testGraphqlClient.ts:18–24  ·  view source on GitHub ↗
(credentials: ICredentials)

Source from the content-addressed store, hash-verified

16};
17
18export const getUserHeader = async (credentials: ICredentials) => {
19 const client = await createTestGraphqlClient({});
20 const result = await client.mutation(loginMutation, credentials).toPromise();
21 if (result.error || !result.data?.auth || !result.data.auth.startsWith('ey'))
22 throw new Error('Authentication failed');
23 return { authorization: `Bearer ${result.data.auth}` };
24};
25
26export const getLinkHeader = async (uuid: string, galleryPasscode?: string) => {
27 return {

Calls 1

createTestGraphqlClientFunction · 0.85

Tested by 2

getVideoFileFunction · 0.72
createLinkUserFunction · 0.72