@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.
- package/bin/tetra-check-rls.js +3 -2
- package/package.json +1 -1
package/bin/tetra-check-rls.js
CHANGED
|
@@ -92,8 +92,9 @@ program
|
|
|
92
92
|
process.exit(1)
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
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
|
}
|