Use different JWT secret for auth and refresh tokens..
This commit is contained in:
@@ -11,11 +11,12 @@ server:
|
||||
cors: true
|
||||
|
||||
jwt:
|
||||
secret: 9Io9kvgIedOcLdUvKl31OKf51jdTZcFHJFgqvEpfJuI= # Can be generated with `openssl rand -base64 32`
|
||||
auth:
|
||||
secret: uiqzRNiMYwbObn/Ps5xTasYVeu/63ZuI+1oB98Ez+lY=
|
||||
validity: 1
|
||||
unit: HOURS
|
||||
refresh:
|
||||
secret: wWchkx44YGig4Q5Z7b7+E/3ymGEGd6PS7UGedMul3bg=
|
||||
validity: 15
|
||||
unit: DAYS
|
||||
|
||||
|
||||
@@ -11,11 +11,12 @@ server:
|
||||
cors: ${CORS:-true}
|
||||
|
||||
jwt:
|
||||
secret: ${JWT_SECRET} # Can be generated with `openssl rand -base64 32`
|
||||
auth:
|
||||
secret: ${JWT_SECRET} # Can be generated with `openssl rand -base64 32`
|
||||
validity: 1
|
||||
unit: HOURS
|
||||
refresh:
|
||||
secret: ${JWT_REFRESH_SECRET} # Can be generated with `openssl rand -base64 32`
|
||||
validity: 15
|
||||
unit: DAYS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user