MCPcopy Create free account
hub / github.com/dailydotdev/apps / getPlusGifterUser

Function getPlusGifterUser

packages/shared/src/graphql/users.ts:1104–1118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1102 }
1103`;
1104export const getPlusGifterUser = async (): Promise<UserShortProfile | null> => {
1105 try {
1106 const res = await gqlClient.request(GET_PLUS_GIFTER_USER);
1107 return res.plusGifterUser;
1108 } catch (error) {
1109 if (error instanceof ClientError) {
1110 const errorCode = error.response?.errors?.[0]?.extensions?.code;
1111 if (errorCode === ApiError.Forbidden) {
1112 return null;
1113 }
1114 }
1115
1116 throw error;
1117 }
1118};
1119
1120export const REQUEST_APP_ACCOUNT_TOKEN_MUTATION = gql`
1121 mutation RequestAppAccountToken {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected