# Have social login buttons on my page

**URL:** <https://community.auth0.com/t/have-social-login-buttons-on-my-page/102212>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 9, 2023, 9:26pm UTC](https://community.auth0.com/t/have-social-login-buttons-on-my-page/102212 "2023-03-09T21:26:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukesamkharadze](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukesamkharadze/32/45250_2.png) [@lukesamkharadze](https://community.auth0.com/u/lukesamkharadze)\
**Post date:** [March 9, 2023, 9:26pm UTC](https://community.auth0.com/t/have-social-login-buttons-on-my-page/102212/1 "2023-03-09T21:26:35Z")

</div>

Is it possible to have social login buttons integrated into my web app, instead of redirecting users to universal 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:** [March 9, 2023, 10:44pm UTC](https://community.auth0.com/t/have-social-login-buttons-on-my-page/102212/3 "2023-03-09T22:44:22Z")

</div>

Hey there @lukesamkharadze welcome to the community!

The exact approach depends, but the answer is yes - You basically just need to pass the `connection` param (`google-oauth2` for example) in the call to the `/authorize` [endpoint](https://auth0.com/docs/api/authentication?http#social).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![lukesamkharadze](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukesamkharadze/32/45250_2.png) [@lukesamkharadze](https://community.auth0.com/u/lukesamkharadze)\
**Post date:** [March 10, 2023, 12:02am UTC](https://community.auth0.com/t/have-social-login-buttons-on-my-page/102212/4 "2023-03-10T00:02:17Z")

</div>

Is there any example in the docs? I couldn’t find one.

All I see is Universal login page and embedding using locks which is not what I’m looking for.

Right now I’m running NextJS Auth0 example app, and there is no call to `/authorize` anywhere

---

<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:** [March 10, 2023, 12:42am UTC](https://community.auth0.com/t/have-social-login-buttons-on-my-page/102212/5 "2023-03-10T00:42:30Z")

</div>

> [@lukesamkharadze](#):
>
> Is there any example in the docs? I couldn’t find one.

Unfortunately, we don’t have any “official” example, but it looks like you should be able to achieve this with `handleAuth` where you’re able to pass the connection as a param to `authorizationParams`:

> <https://github.com/auth0/nextjs-auth0/issues/94#issuecomment-1204691003>
>
> I'm working on a NextJs project in which I have my custom login page.
> I was won…dering if I could use this package to authenticate but without redirecting to Auth0's Universal Login. 
> In case I cant, could you point me in the right direction? The only constraint I have is to avoid having sensitive data Client side, that's why I'm using the pages/api approach, using my .env sensitive vars from there to avoid exposing them to the Client.
> 
> Thanks!

---

<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:** [March 24, 2023, 12:43am UTC](https://community.auth0.com/t/have-social-login-buttons-on-my-page/102212/6 "2023-03-24T00:43:29Z")

</div>

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