Skip to content

Commit 115c390

Browse files
committed
fix for #991
1 parent a0c5de0 commit 115c390

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,9 @@ This example sends the signed claims:
901901
"exp": 1538207635
902902
}
903903

904+
It is important to set `jwtAuth.audiences` and `jwtAuth.issuers` to avoid tokens from other
905+
projects on the same authentication provider to work on your project.
906+
904907
NB: The JWT implementation only supports the RSA and HMAC based algorithms.
905908

906909
##### Configure and test JWT authentication with Auth0
@@ -923,7 +926,9 @@ file. Be sure to fill these three variables:
923926
- `clientId` with your Client ID
924927
- `audience` with the API URL you created in Auth0
925928

926-
⚠️ If you don't fill the audience parameter, it will not work because you won't get a valid JWT.
929+
Note that if you don't fill the audience parameter, it will not work because you won't get a valid JWT.
930+
Also note that you should fill `jwtAuth.audiences` to ensure the tokens are validated to be generated
931+
for your application.
927932

928933
You can also change the `url` variable, used to test the API with authentication.
929934

0 commit comments

Comments
 (0)