Skip to content

Commit

Permalink
client: allow direct login on chrome if flag is explicitly true
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 20, 2023
1 parent e5cef3f commit 0a43368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export async function connectScryptedClient(options: ScryptedClientOptions): Pro
options?.previousLoginResult?.directAddress,
options?.previousLoginResult?.cloudAddress,
]) {
if (u && options?.previousLoginResult?.token && isNotChromeOrIsInstalledApp)
if (u && options?.previousLoginResult?.token && (isNotChromeOrIsInstalledApp || options.direct))
urlsToCheck.add(u);
}

Expand Down

0 comments on commit 0a43368

Please sign in to comment.