await the open

This commit is contained in:
TheCactusBlue 2025-04-08 20:54:35 -07:00
parent b73daa0163
commit 60a2418821
2 changed files with 2 additions and 3 deletions

View File

@ -45,7 +45,6 @@
],
"dependencies": {
"@hookform/resolvers": "^3.3.4",
"@oslojs/otp": "^1.1.0",
"@simplewebauthn/browser": "^11.0.0",
"@stackframe/stack-sc": "workspace:*",
"@stackframe/stack-shared": "workspace:*",
@ -57,7 +56,7 @@
"js-cookie": "^3.0.5",
"lucide-react": "^0.378.0",
"oauth4webapi": "^2.10.3",
"open": "^10.1.0",
"@oslojs/otp": "^1.1.0",
"qrcode": "^1.5.4",
"react-avatar-editor": "^13.0.2",
"react-hook-form": "^7.51.4",

View File

@ -1506,7 +1506,7 @@ export class _StackClientAppImplIncomplete<HasTokenStore extends boolean, Projec
const url = `${options.appUrl}/handler/cli-auth-confirm?login_code=${encodeURIComponent(loginCode)}`;
if (typeof process !== 'undefined' && process.versions?.node != null) {
const open = (await import("open")).default;
open(url);
await open(url);
}
console.log(`Please visit the following URL to authenticate:\n${url}`);