# Auth0 REST APIs for Authentication without the widget in custom react page

**URL:** <https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [January 11, 2023, 11:30am UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933 "2023-01-11T11:30:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrawat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mrawat/32/42528_2.png) [@mrawat](https://community.auth0.com/u/mrawat)\
**Post date:** [January 11, 2023, 11:30am UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/1 "2023-01-11T11:30:25Z")

</div>

How can I use login method in react custom page using the auth0 API just like the old API which is deprecated now (https://YOUR\_DOMAIN/oauth/ro) which is simply a POST API needs user’s email and password with clientId. This API is Deprecated - [Authentication API Explorer](https://auth0.com/docs/api/authentication#database-ad-ldap-active-)

---

<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:** [January 14, 2023, 12:26am UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/3 "2023-01-14T00:26:54Z")

</div>

Hey there @mrawat welcome to the community!

As noted in the documentation for `oauth/ro` this has been replaced by the [password grant](https://auth0.com/docs/api/authentication#resource-owner-password). However it is not recommended that this grant is used in a public application, only confidential. Some resources that may be of help:

> **[Embedded Login](https://auth0.com/docs/authenticate/login/embedded-login)**
>
> Describes Auth0 Embedded Login used to log users directly into your application, transmitting credentials to the Auth0 server.

> **[Confidential and Public Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications#confidential-applications)**
>
> Describes the difference between confidential and public application types.

Keep us posted!

---

<div class="post-metadata">

**Author:** ![mrawat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mrawat/32/42528_2.png) [@mrawat](https://community.auth0.com/u/mrawat)\
**Post date:** [January 16, 2023, 7:27am UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/4 "2023-01-16T07:27:02Z")

</div>

is there any way of implementing authentication(login) without the auth0 widget ?

---

<div class="post-metadata">

**Author:** ![mrawat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mrawat/32/42528_2.png) [@mrawat](https://community.auth0.com/u/mrawat)\
**Post date:** [January 16, 2023, 7:33am UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/5 "2023-01-16T07:33:18Z")

</div>

hey @ty.frith thanks for the reply,

I just wanted to know is there any way of implementing authentication(login) without the auth0 widget ? if any then how can I implement it ? whats that term called ? is it silent Authentication ?

---

<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:** [January 17, 2023, 4:28pm UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/6 "2023-01-17T16:28:44Z")

</div>

Hey there @mrawat!

Yes - You’ll need to configure [embedded login](https://auth0.com/docs/authenticate/login/embedded-login) and call the authentication API directly. [Silent auth](https://auth0.com/docs/authenticate/login/configure-silent-authentication) is used to re-auth users that have already logged in.

Unfortunately, as this is [not a recommended approach](https://community.auth0.com/t/embedded-with-custom-domain-vs-universal-login/26094/3) there isn’t much in the way of examples.

> **[Centralized Universal Login vs. Embedded Login](https://auth0.com/docs/authenticate/login/universal-vs-embedded-login)**
>
> Describes the differences between centralized Universal Login and Embedded login.

---

<div class="post-metadata">

**Author:** ![mrawat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mrawat/32/42528_2.png) [@mrawat](https://community.auth0.com/u/mrawat)\
**Post date:** [January 18, 2023, 5:09am UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/7 "2023-01-18T05:09:31Z")

</div>

Thanks @ty.frith for your time.

---

<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:** [January 23, 2023, 6:09pm UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/8 "2023-01-23T18:09:41Z")

</div>

No problem, happy to help!

---

<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:** [February 6, 2023, 6:10pm UTC](https://community.auth0.com/t/auth0-rest-apis-for-authentication-without-the-widget-in-custom-react-page/97933/9 "2023-02-06T18:10:25Z")

</div>

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