Commit 7a2849e 1 parent bafc919 commit 7a2849e Copy full SHA for 7a2849e
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,13 @@ readonly API_ENDPOINT=:3000/api
4
4
5
5
# Forged admin credentials: { "admin": true }
6
6
# This value depends on JWT_SECRET for your environment.
7
- export JWT_AUTH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZX0.8KFeahppAFH8WUxwGLLkbBAaZHF5ZKciOG5HSQ0gajo
7
+ # Pass it as an environment variable to this script.
8
+ #
9
+ # JWT_AUTH_TOKEN=abcd...6789 ./seed.sh
10
+ #
11
+ # The script will use the value from the environment, but
12
+ # default to the value below if you don't pass one in.
13
+ export JWT_AUTH_TOKEN=${JWT_AUTH_TOKEN:- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZX0.8KFeahppAFH8WUxwGLLkbBAaZHF5ZKciOG5HSQ0gajo}
8
14
9
15
function addUser() {
10
16
local name=$1 ; shift
You can’t perform that action at this time.
0 commit comments