Skip to content

Commit 2798933

Browse files
authored
feat(auth): note about reauth flow (#2739)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent bbcbc3b commit 2798933

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/renderer/routes/LoginWithDeviceFlow.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import {
1717
Text,
1818
} from '@primer/react';
1919

20+
import { Constants } from '../constants';
21+
2022
import { useAppContext } from '../hooks/useAppContext';
2123

2224
import { Contents } from '../components/layout/Contents';
@@ -33,6 +35,7 @@ import {
3335
} from '../utils/auth/utils';
3436
import { rendererLogError } from '../utils/core/logger';
3537
import { copyToClipboard, openExternalLink } from '../utils/system/comms';
38+
import { openDeveloperSettings } from '../utils/system/links';
3639

3740
interface LocationState {
3841
account?: Account;
@@ -262,6 +265,27 @@ export const LoginWithDeviceFlowRoute: FC = () => {
262265
</Text>
263266
</Stack>
264267
</Button>
268+
269+
<Stack gap="none">
270+
<Text as="em" size="small">
271+
Note: to change previously granted permissions, revoke Gitify's
272+
access at{' '}
273+
<button
274+
className="text-gitify-link cursor-pointer"
275+
onClick={() =>
276+
openDeveloperSettings({
277+
hostname: Constants.GITHUB_HOSTNAME,
278+
method: 'GitHub App',
279+
} as Account)
280+
}
281+
title="GitHub → Developer Settings"
282+
type="button"
283+
>
284+
GitHub → Developer Settings
285+
</button>
286+
, then re-authorize above.
287+
</Text>
288+
</Stack>
265289
</Stack>
266290
</Stack>
267291
);

0 commit comments

Comments
 (0)