(account: Account)
| 39 | * Always fetches fresh data without caching to ensure up-to-date user info. |
| 40 | */ |
| 41 | export 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. |
no test coverage detected