@@ -139,7 +139,7 @@ export const AuthLoginCommand = cmd({
139139 if ( provider === "other" ) {
140140 provider = await prompts . text ( {
141141 message : "Enter provider id" ,
142- validate : ( x ) => x && ( x . match ( / ^ [ 0 - 9 a - z - ] + $ / ) ? undefined : "a-z, 0-9 and hyphens only" ) ,
142+ validate : ( x ) => ( x && x . match ( / ^ [ 0 - 9 a - z - ] + $ / ) ? undefined : "a-z, 0-9 and hyphens only" ) ,
143143 } )
144144 if ( prompts . isCancel ( provider ) ) throw new UI . CancelledError ( )
145145 provider = provider . replace ( / ^ @ a i - s d k \/ / , "" )
@@ -193,7 +193,7 @@ export const AuthLoginCommand = cmd({
193193
194194 const code = await prompts . text ( {
195195 message : "Paste the authorization code here: " ,
196- validate : ( x ) => x && ( x . length > 0 ? undefined : "Required" ) ,
196+ validate : ( x ) => ( x && x . length > 0 ? undefined : "Required" ) ,
197197 } )
198198 if ( prompts . isCancel ( code ) ) throw new UI . CancelledError ( )
199199
@@ -229,7 +229,7 @@ export const AuthLoginCommand = cmd({
229229
230230 const code = await prompts . text ( {
231231 message : "Paste the authorization code here: " ,
232- validate : ( x ) => x && ( x . length > 0 ? undefined : "Required" ) ,
232+ validate : ( x ) => ( x && x . length > 0 ? undefined : "Required" ) ,
233233 } )
234234 if ( prompts . isCancel ( code ) ) throw new UI . CancelledError ( )
235235
@@ -302,7 +302,7 @@ export const AuthLoginCommand = cmd({
302302
303303 const key = await prompts . password ( {
304304 message : "Enter your API key" ,
305- validate : ( x ) => x && ( x . length > 0 ? undefined : "Required" ) ,
305+ validate : ( x ) => ( x && x . length > 0 ? undefined : "Required" ) ,
306306 } )
307307 if ( prompts . isCancel ( key ) ) throw new UI . CancelledError ( )
308308 await Auth . set ( provider , {
0 commit comments