# Best practice for supporting both DB and Passwordless connections in React

**URL:** <https://community.auth0.com/t/best-practice-for-supporting-both-db-and-passwordless-connections-in-react/106431>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-react\
**Created:** [May 8, 2023, 7:31pm UTC](https://community.auth0.com/t/best-practice-for-supporting-both-db-and-passwordless-connections-in-react/106431 "2023-05-08T19:31:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cnowacek](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cnowacek/32/45490_2.png) [@cnowacek](https://community.auth0.com/u/cnowacek)\
**Post date:** [May 9, 2023, 4:01pm UTC](https://community.auth0.com/t/best-practice-for-supporting-both-db-and-passwordless-connections-in-react/106431/2 "2023-05-09T16:01:26Z")

</div>

I was able to solve this myself. For anyone else who comes across this, I was able to pass `authorizationParams`, that specified the connection, to the `loginWithRedirect(...)` function. It looks like this:

```auto
loginWithRedirect({authorizationParams: { connection: "sms" }})

```

---

_[View the full topic](https://community.auth0.com/t/best-practice-for-supporting-both-db-and-passwordless-connections-in-react/106431)._
