# Send custom params from auth0-spa-js loginWithRedirect() for using in rules

**URL:** <https://community.auth0.com/t/send-custom-params-from-auth0-spa-js-loginwithredirect-for-using-in-rules/63686>\
**Category:** Get Help\
**Tags:** auth0-spa-js, rules, query-parameters, custom-param\
**Created:** [June 1, 2021, 3:11pm UTC](https://community.auth0.com/t/send-custom-params-from-auth0-spa-js-loginwithredirect-for-using-in-rules/63686 "2021-06-01T15:11:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 2, 2021, 9:33pm UTC](https://community.auth0.com/t/send-custom-params-from-auth0-spa-js-loginwithredirect-for-using-in-rules/63686/3 "2021-06-02T21:33:01Z")

</div>

Hi @pratikpalse,

Welcome to the Community!

You need to pass an object. (`{}`) to the `loginWithRedirect()` method. You are currently passing an array (`[]`).

For example:

```auto
loginWithRedirect({foo:'bar'})
```

---

_[View the full topic](https://community.auth0.com/t/send-custom-params-from-auth0-spa-js-loginwithredirect-for-using-in-rules/63686)._
