# No wordpress cookie getting saved in my client react app after login through my custom domain

**URL:** <https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201>\
**Category:** Get Help\
**Tags:** wordpress-login, wordpress-auth0, wordpress\
**Created:** [July 30, 2020, 1:49pm UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201 "2020-07-30T13:49:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddhantD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siddhantd/32/22865_2.png) [@siddhantD](https://community.auth0.com/u/siddhantD)\
**Post date:** [July 30, 2020, 1:49pm UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/1 "2020-07-30T13:49:54Z")

</div>

I have installed auth0 wordpress plugin and did set up my auth0 application with migration token and custom domain and all.  
what I am trying is accessing wordpress session cookies in my react client app. But unfortunately no wordpress session cookie visible in my app.

login flow

domain .com = app  
content .domain.com = wordpress  
login.domain .com = custom domain

user logs in app → its redirects to → [login.domain.com](http://login.domain.com) and then it redirects back to → app.

in wordpress plugin i have given custom domain [login.domain.com](http://login.domain.com).

but no wordpress session cookie is visible in main [domain.com](http://domain.com)

please help

---

<div class="post-metadata">

**Author:** ![siddhantD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siddhantd/32/22865_2.png) [@siddhantD](https://community.auth0.com/u/siddhantD)\
**Post date:** [August 3, 2020, 12:05pm UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/2 "2020-08-03T12:05:24Z")

</div>

I have solved it by first redirect to my [content.domain.com](http://content.domain.com) and then to my react app it solved my cookie issues

thanks you.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [August 3, 2020, 1:15pm UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/3 "2020-08-03T13:15:55Z")

</div>

Hey there @siddhantD and welcome to the Community!

I apologize for the delay but I’m glad you were able to get this challenge resolved. Please let me know if you have any questions in the future!

---

<div class="post-metadata">

**Author:** ![siddhantD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siddhantd/32/22865_2.png) [@siddhantD](https://community.auth0.com/u/siddhantD)\
**Post date:** [August 5, 2020, 9:08am UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/5 "2020-08-05T09:08:13Z")

</div>

is there any auth0 way of accessing wordpress cookies in my react app.

thank you

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [August 5, 2020, 8:33pm UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/6 "2020-08-05T20:33:09Z")

</div>

> [@siddhantD](#):
>
> is there any auth0 way of accessing wordpress cookies in my react app.

What are you trying to do with the cookie? You do set wp\_set\_auth\_cookie when leveraging the wordpress auth0 plugin. How are you implementing Auth0 into your stack?

> **[Integrate with WordPress](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/integrate-with-wordpress)**
>
> Describes the scenarios of how Auth0 integrates with WordPress

---

<div class="post-metadata">

**Author:** ![siddhantD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siddhantd/32/22865_2.png) [@siddhantD](https://community.auth0.com/u/siddhantD)\
**Post date:** [August 6, 2020, 5:24am UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/7 "2020-08-06T05:24:55Z")

</div>

Sir i want, My react app to create posts and do mutation queries in WordPress but its not possible right now. Because for that i would be needing a authorization token or auth cookies which right now auth0 plugin does not support.

then how can i do mutation queries?

thank you

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [August 7, 2020, 5:28pm UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/8 "2020-08-07T17:28:51Z")

</div>

> [@siddhantD](#):
>
> Sir i want, My react app to create posts and do mutation queries in WordPress but its not possible right now. Because for that i would be needing a authorization token or auth cookies which right now auth0 plugin does not support.
> 
> then how can i do mutation queries?

After confirming with the support team, it won’t be possible to really provide a in-depth answer here without a better understanding overall on your systems architecture. I apologize for the confusion, thank you.

---

<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:** [August 22, 2020, 5:29pm UTC](https://community.auth0.com/t/no-wordpress-cookie-getting-saved-in-my-client-react-app-after-login-through-my-custom-domain/47201/9 "2020-08-22T17:29:54Z")

</div>

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