# Need help finding Auth0 environment variable "auth0CookieSecret"

**URL:** <https://community.auth0.com/t/need-help-finding-auth0-environment-variable-auth0cookiesecret/127876>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [February 20, 2024, 4:27pm UTC](https://community.auth0.com/t/need-help-finding-auth0-environment-variable-auth0cookiesecret/127876 "2024-02-20T16:27:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JWitt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jwitt/32/54996_2.png) [@JWitt](https://community.auth0.com/u/JWitt)\
**Post date:** [February 20, 2024, 4:27pm UTC](https://community.auth0.com/t/need-help-finding-auth0-environment-variable-auth0cookiesecret/127876/1 "2024-02-20T16:27:18Z")

</div>

I’m trying to replicate [this example](https://github.com/sir-dunxalot/cypress-nextjs-auth0/blob/main/README.md) to set up a login method for my cypress e2e tests. I’m on step 5 in the read me I’m having trouble figuring out what my “auth0CookieSecret” should be set to or where to find it. All the other variables I was able to get from my application setting in auth0 like the client secret, the auth0 Client ID, and all the URLs but I can’t seem to figure out where to find what my auth0CookieSecret should be set as.

Can anyone point me in the right direction? I’ve created a Single Page application just for cypress testing on the auth0 already and have all other environment variables filled in on my cypress.env.json.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 20, 2024, 4:49pm UTC](https://community.auth0.com/t/need-help-finding-auth0-environment-variable-auth0cookiesecret/127876/3 "2024-02-20T16:49:29Z")

</div>

Hey there @JWitt welcome to the community!

> [@JWitt](#):
>
> Can anyone point me in the right direction? I’ve created a Single Page application just for cypress testing on the auth0 already and have all other environment variables filled in on my cypress.env.json.

It looks like this is just a randomly generated string you create, similar to our nextjs-auth0 SDK:

> <https://github.com/sir-dunxalot/cypress-nextjs-auth0/issues/20>
>
> Is \`auth0CookieSecret\` created by auth0? Or do we generate this key ourselves?

---

<div class="post-metadata">

**Author:** ![JWitt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jwitt/32/54996_2.png) [@JWitt](https://community.auth0.com/u/JWitt)\
**Post date:** [February 20, 2024, 5:42pm UTC](https://community.auth0.com/t/need-help-finding-auth0-environment-variable-auth0cookiesecret/127876/4 "2024-02-20T17:42:17Z")

</div>

Ah ok thanks @ty.frith , I’ll give that a try!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 5, 2024, 5:43pm UTC](https://community.auth0.com/t/need-help-finding-auth0-environment-variable-auth0cookiesecret/127876/5 "2024-03-05T17:43:13Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
