MCPcopy Index your code
hub / github.com/gitify-app/gitify / fetchAuthenticatedUserDetails

Function fetchAuthenticatedUserDetails

src/renderer/utils/api/client.ts:41–49  ·  view source on GitHub ↗
(account: Account)

Source from the content-addressed store, hash-verified

39 * Always fetches fresh data without caching to ensure up-to-date user info.
40 */
41export async function fetchAuthenticatedUserDetails(account: Account) {
42 const octokit = await createOctokitClientUncached(account, 'rest');
43
44 return await octokit.rest.users.getAuthenticated({
45 headers: {
46 'Cache-Control': 'no-cache', // Prevent caching
47 },
48 });
49}
50
51/**
52 * List all notifications for the current user, sorted by most recently updated.

Callers 3

refreshAccountFunction · 0.90
client.test.tsFile · 0.90
AppProviderFunction · 0.90

Calls 1

Tested by

no test coverage detected