Skip to content

Commit 61163db

Browse files
authored
fix(api): no cache user responses (#2677)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent adb99fb commit 61163db

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/renderer/utils/api/client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ import { getNumberFromUrl } from './utils';
4141
export async function fetchAuthenticatedUserDetails(account: Account) {
4242
const octokit = await createOctokitClientUncached(account, 'rest');
4343

44-
return await octokit.rest.users.getAuthenticated();
44+
return await octokit.rest.users.getAuthenticated({
45+
headers: {
46+
'Cache-Control': 'no-cache', // Prevent caching
47+
},
48+
});
4549
}
4650

4751
/**

0 commit comments

Comments
 (0)