Skip to content

Commit ccbf28e

Browse files
chore(playground): add jwt secret for users-permissions plugin
1 parent 5ca1bfe commit ccbf28e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

playground/config/plugins.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
import { randomBytes } from "node:crypto"
2+
13
export default ({ env }) => ({
24
"deep-populate": { enabled: true },
5+
"users-permissions": {
6+
config: {
7+
jwt: {
8+
jwtSecret: env("STRAPI_JWT_SECRET") || randomBytes(16).toString("base64"),
9+
},
10+
},
11+
},
312
})

0 commit comments

Comments
 (0)