We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb99fb commit 61163dbCopy full SHA for 61163db
1 file changed
src/renderer/utils/api/client.ts
@@ -41,7 +41,11 @@ import { getNumberFromUrl } from './utils';
41
export async function fetchAuthenticatedUserDetails(account: Account) {
42
const octokit = await createOctokitClientUncached(account, 'rest');
43
44
- return await octokit.rest.users.getAuthenticated();
+ return await octokit.rest.users.getAuthenticated({
45
+ headers: {
46
+ 'Cache-Control': 'no-cache', // Prevent caching
47
+ },
48
+ });
49
}
50
51
/**
0 commit comments