@soulbatical/tetra-dev-toolkit 1.8.7 → 1.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,8 +92,9 @@ program
92
92
  process.exit(1)
93
93
  }
94
94
 
95
- if (!key.startsWith('eyJ')) {
96
- console.error(chalk.red('ERROR: Key does not look like a service_role key (should start with eyJ).'))
95
+ // Supabase keys can be JWT (eyJ...) or new format (sb_se..., sbp_...)
96
+ if (key === url || key.length < 20) {
97
+ console.error(chalk.red('ERROR: Key does not look like a valid Supabase service key.'))
97
98
  console.error(chalk.gray('Make sure you are using the SERVICE_ROLE key, not the anon key.'))
98
99
  process.exit(1)
99
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulbatical/tetra-dev-toolkit",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "publishConfig": {
5
5
  "access": "restricted"
6
6
  },