# Node-jwks-rsa: expressJwtSecret: why is it called "secret"?

**URL:** <https://community.auth0.com/t/node-jwks-rsa-expressjwtsecret-why-is-it-called-secret/85380>\
**Category:** Get Help\
**Tags:** jwks\
**Created:** [June 20, 2022, 3:53am UTC](https://community.auth0.com/t/node-jwks-rsa-expressjwtsecret-why-is-it-called-secret/85380 "2022-06-20T03:53:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cretaceousflower](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cretaceousflower/32/38147_2.png) [@cretaceousflower](https://community.auth0.com/u/cretaceousflower)\
**Post date:** [June 20, 2022, 3:53am UTC](https://community.auth0.com/t/node-jwks-rsa-expressjwtsecret-why-is-it-called-secret/85380/1 "2022-06-20T03:53:45Z")

</div>

Hi.  
I am unclear re the [expressJwtSecret()](https://github.com/auth0/node-jwks-rsa/blob/9eab68113ae77d9e784746da46110428510f84d2/src/integrations/express.js#L17) secret provider generator. If it’s role is to retrieve a _public key_ - why is it called _“secret”_? Is there some handling of secrets that I am missing?  
Thanks!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 27, 2022, 5:05pm UTC](https://community.auth0.com/t/node-jwks-rsa-expressjwtsecret-why-is-it-called-secret/85380/3 "2022-06-27T17:05:30Z")

</div>

Hi @cretaceousflower,

Welcome to the Auth0 Community!

In the case where you are using a public key, it is not actually a `secret`, and it appears to simply be a naming decision. Here is an example where they are using the public key as the variable for secret:

> <https://github.com/auth0/express-jwt/blob/master/README.md?plain=1#L116>

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 9:35am UTC](https://community.auth0.com/t/node-jwks-rsa-expressjwtsecret-why-is-it-called-secret/85380/4 "2022-12-22T09:35:19Z")

</div>


