Skip to content

Commit 066c7a5

Browse files
committed
docs(authentitcation): update the example secret
Update de secret value used as example in order to avoid programmers to use it on production code
1 parent 90d1519 commit 066c7a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/security/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,11 @@ First, create `constants.ts` in the `auth` folder, and add the following code:
465465
```typescript
466466
@@filename(auth/constants)
467467
export const jwtConstants = {
468-
secret: 'secretKey',
468+
secret: 'DO NOT USE THIS VALUE. INSTEAD, CREATE A COMPLEX SECRET AND KEEP IT SAFE OUTSIDE OF THE SOURCE CODE.',
469469
};
470470
@@switch
471471
export const jwtConstants = {
472-
secret: 'secretKey',
472+
secret: 'DO NOT USE THIS VALUE. INSTEAD, CREATE A COMPLEX SECRET AND KEEP IT SAFE OUTSIDE OF THE SOURCE CODE.',
473473
};
474474
```
475475

0 commit comments

Comments
 (0)