File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ - The ` npx convex login --login-flow paste ` flag can be used to explicitly opt
6
+ into the manual token paste login method.
7
+
3
8
## 1.23.0
4
9
5
10
- ` npx convex dev ` now supports the option of running Convex locally without an
29
34
- Calling registered functions directly like helper functions no longer
30
35
typechecks. See release notes for 1.18.0 for more.
31
36
32
- - The ` npx convex login --auth-flow paste ` flag can be used to explicitly opt
33
- into the manual token paste login method.
34
-
35
37
- Upgrade esbuild for a sourcemap bug fix.
36
38
37
39
- Fix FieldTypeFromFieldPath to handle union of nested values and primitives.
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ export async function performLogin(
286
286
overrideAuthUsername,
287
287
overrideAuthPassword,
288
288
overrideAccessToken,
289
- authFlow ,
289
+ loginFlow ,
290
290
open,
291
291
acceptOptIns,
292
292
dumpAccessToken,
@@ -298,7 +298,7 @@ export async function performLogin(
298
298
overrideAuthUsername ?: string ;
299
299
overrideAuthPassword ?: string ;
300
300
overrideAccessToken ?: string ;
301
- authFlow ?: "auto" | "paste" | "poll" ;
301
+ loginFlow ?: "auto" | "paste" | "poll" ;
302
302
// default `true`
303
303
open ?: boolean ;
304
304
// default `false`
@@ -308,7 +308,7 @@ export async function performLogin(
308
308
anonymousId ?: string ;
309
309
} = { } ,
310
310
) {
311
- authFlow = authFlow || "auto" ;
311
+ loginFlow = loginFlow || "auto" ;
312
312
// Get access token from big-brain
313
313
// Default the device name to the hostname, but allow the user to change this if the terminal is interactive.
314
314
// On Macs, the `hostname()` may be a weirdly-truncated form of the computer name. Attempt to read the "real" name before falling back to hostname.
@@ -338,7 +338,7 @@ export async function performLogin(
338
338
let auth0 ;
339
339
let accessToken : string ;
340
340
341
- if ( authFlow === "paste" || ( authFlow === "auto" && isWebContainer ( ) ) ) {
341
+ if ( loginFlow === "paste" || ( loginFlow === "auto" && isWebContainer ( ) ) ) {
342
342
accessToken = await promptString ( ctx , {
343
343
message :
344
344
"Open https://dashboard.convex.dev/auth, log in and paste the token here:" ,
You can’t perform that action at this time.
0 commit comments