File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @shopify/theme ' : patch
3+ ---
4+
5+ Provide error when using non-theme access app password
Original file line number Diff line number Diff line change 11import { Flags } from '@oclif/core'
22import { normalizeStoreFqdn } from '@shopify/cli-kit/node/context/fqdn'
3+ import { AbortError } from '@shopify/cli-kit/node/error'
34import { resolvePath , cwd } from '@shopify/cli-kit/node/path'
45
56/**
@@ -17,6 +18,13 @@ export const themeFlags = {
1718 password : Flags . string ( {
1819 description : 'Password generated from the Theme Access app.' ,
1920 env : 'SHOPIFY_CLI_THEME_TOKEN' ,
21+ parse : async ( input ) => {
22+ if ( input . startsWith ( 'shptka_' ) ) {
23+ return input
24+ }
25+
26+ throw new AbortError ( 'Invalid password. Please generate a new password from the Theme Access app.' )
27+ } ,
2028 } ) ,
2129 store : Flags . string ( {
2230 char : 's' ,
You can’t perform that action at this time.
0 commit comments