We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b7380 commit f81ae70Copy full SHA for f81ae70
1 file changed
adminforth/index.ts
@@ -619,7 +619,14 @@ class AdminForth implements IAdminForth {
619
this.config.resources.forEach((resource) => {
620
this.operationalResources[resource.resourceId] = new OperationalResource(this.connectors[resource.dataSource], resource);
621
});
622
-
+
623
+ const adminforthSecret = process.env.ADMINFORTH_SECRET;
624
+ if (!adminforthSecret) {
625
+ throw new Error(`ADMINFORTH_SECRET environment not set
626
+ Please set ADMINFORTH_SECRET environment variable to a random string to secure your admin panel.
627
+ ADMINFORTH_SECRET variable is used to sign JWT tokens
628
+ `);
629
+ }
630
}
631
632
async getAllTables(): Promise<{ [dataSourceId: string]: string[] }> {
0 commit comments