mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
await the open
This commit is contained in:
parent
b73daa0163
commit
60a2418821
@ -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",
|
||||
|
||||
@ -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}`);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user