# Auth0 login mechanism

**URL:** <https://community.auth0.com/t/auth0-login-mechanism/99349>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [January 31, 2023, 7:00am UTC](https://community.auth0.com/t/auth0-login-mechanism/99349 "2023-01-31T07:00:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitaa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ankitaa/32/42298_2.png) [@ankitaa](https://community.auth0.com/u/ankitaa)\
**Post date:** [January 31, 2023, 7:00am UTC](https://community.auth0.com/t/auth0-login-mechanism/99349/1 "2023-01-31T07:00:17Z")

</div>

Hi is there a possibility that I don’t have to trigger the button manually on login page to redirect to the auth0 login page?

---

<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:** [February 1, 2023, 2:15am UTC](https://community.auth0.com/t/auth0-login-mechanism/99349/2 "2023-02-01T02:15:34Z")

</div>

Hi there @ankitaa !

Yes it is possible to redirect to Auth0 by calling the `/authorize` endpoint - Please see the doc below for example flows:

> **[Which OAuth 2.0 Flow Should I Use?](https://auth0.com/docs/get-started/authentication-and-authorization-flow/which-oauth-2-0-flow-should-i-use)**
>
> Learn how to identify the proper OAuth 2.0 flow for your use case.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![ankitaa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ankitaa/32/42298_2.png) [@ankitaa](https://community.auth0.com/u/ankitaa)\
**Post date:** [February 1, 2023, 7:03am UTC](https://community.auth0.com/t/auth0-login-mechanism/99349/4 "2023-02-01T07:03:20Z")

</div>

Also can I pass any query params in it, that I can access in my custom login html.

---

<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:** [February 7, 2023, 10:03pm UTC](https://community.auth0.com/t/auth0-login-mechanism/99349/5 "2023-02-07T22:03:13Z")

</div>

Hey there @ankitaa sorry for the delayed response!

It depends on how you are going about calling the authorize endpoint, but for example using the React SDK:

[https://community.auth0.com/t/send-additional-parameters-to-authorization-endpoint-with-react-sdk/89883](https://community.auth0.com/t/send-additional-parameters-to-authorization-endpoint-with-react-sdk/89883)

---

<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 21, 2023, 10:04pm UTC](https://community.auth0.com/t/auth0-login-mechanism/99349/6 "2023-02-21T22:04:09Z")

</div>

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