Skip to content

Commit 0fe6046

Browse files
committed
refactor: Copy vertification URI to clipboard when logging in with FPFSS.
1 parent 075e2fb commit 0fe6046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/fpfss.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ export async function fpfssLogin(createDialog: typeof mainActions.createDialog,
3131
const pollUrl = `${fpfssBaseUrl}/auth/token`;
3232
const profileUrl = `${fpfssBaseUrl}/api/profile`;
3333
await remote.shell.openExternal(token.verification_uri_complete);
34+
remote.clipboard.writeText(token.verification_uri_complete);
3435

3536
const dialog: DialogState = {
3637
largeMessage: true,
37-
message: 'Please login in your browser to continue',
38+
message: 'Please login in your browser to continue. If the link does not automatically open in your browser, paste it from your clipboard.',
3839
buttons: ['Cancel'],
3940
id: uuid()
4041
};

0 commit comments

Comments
 (0)