# Can i auth React plugin with csrfToekn

**URL:** <https://discourse.cakephp.org/t/can-i-auth-react-plugin-with-csrftoekn/5902>\
**Category:** Need Help\
**Created:** [April 7, 2019, 8:59am UTC](https://discourse.cakephp.org/t/can-i-auth-react-plugin-with-csrftoekn/5902 "2019-04-07T08:59:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kani](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kani/32/515_2.png) [@kani](https://discourse.cakephp.org/u/kani)\
**Post date:** [April 7, 2019, 8:59am UTC](https://discourse.cakephp.org/t/can-i-auth-react-plugin-with-csrftoekn/5902/1 "2019-04-07T08:59:15Z")

</div>

Cakephp login action redirect with csrfToken to react plugin

> [http://localhost/cakephp/reactplugin](http://localhost/cakephp/reactplugin)

.  
and react plugin send async request with csrfToken header.  
Can i auth like that?
