# Embed internet identity login in dapp frontend

**URL:** <https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760>\
**Category:** Developers\
**Created:** [September 4, 2025, 3:14am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760 "2025-09-04T03:14:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [September 4, 2025, 3:14am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/1 "2025-09-04T03:14:15Z")

</div>

Hi developers,  
The new Internet identity seems promise with OpenId integration. Now every login flow seems like this.

1. Click “Login with Internet identity”
2. Redirect to id.ai
3. User Click “Login with google”
4. User redirect to Google
5. Select account
6. Redirect to origin page

As a user, never use Internet identity, it feel scary to use it because they don’t understand concept of internet identity, they just need to login to dapp.

As a dapp developer, I prefer a way to embed login with goole or passkey in my frontend with Internet identity login feature

 ![Screenshot 2025-09-04 at 10.12.19](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/8/4/84684c8a652f128825b7c330fb8355b0952c29c9.png)  
Here is one [example](https://demo.privy.io/)

---

<div class="post-metadata">

**Author:** ![lmuntaner](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lmuntaner/32/5075_2.png) [@lmuntaner](https://forum.dfinity.org/u/lmuntaner)\
**Post date:** [September 4, 2025, 6:22am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/2 "2025-09-04T06:22:05Z")

</div>

Hi!

We are working on something that might resemble this, to make the integration with Internet Identity more seamless than it is today.

Stay tuned!

---

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [September 4, 2025, 6:43am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/3 "2025-09-04T06:43:42Z")

</div>

Do you have ETA? is that anything will release this year?

---

<div class="post-metadata">

**Author:** ![lmuntaner](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lmuntaner/32/5075_2.png) [@lmuntaner](https://forum.dfinity.org/u/lmuntaner)\
**Post date:** [September 4, 2025, 7:45am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/4 "2025-09-04T07:45:16Z")

</div>

Not specific ETA. Yes, I’m hoping for this year.

---

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [September 4, 2025, 8:45am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/5 "2025-09-04T08:45:35Z")

</div>

Do you know how to do it in theory. We want to implement some POC!

---

<div class="post-metadata">

**Author:** ![lmuntaner](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lmuntaner/32/5075_2.png) [@lmuntaner](https://forum.dfinity.org/u/lmuntaner)\
**Post date:** [September 4, 2025, 6:50pm UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/6 "2025-09-04T18:50:17Z")

</div>

We are going to implement it in Internet Identity if we do so.

The project is open source, so if you want ot take inspiration take a look at the repository of [Internet Identity](https://github.com/dfinity/internet-identity).

---

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [September 9, 2025, 2:57pm UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/7 "2025-09-09T14:57:42Z")

</div>

I tried to clone the code from frontend and calling requestJWT in my frontend, but seems my endpoint doesn’t included in “Authorized redirect URIs”.

 ![Screenshot 2025-09-09 at 21.39.56](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/c/c/ccdeb54790e071c09dd1075a0b25127d022115d1.png)

My login flow  
Frontend → Google login → redirect URI - stoped here because my frontend is not included in client setting

bioniq + web3Auth doesn’t have this method because in redirect\_uri is web3auth  
bioniq flow:  
Frontend → Web3Auth → Google login → Web3Auth callback → Frontend

 ![Screenshot 2025-09-09 at 21.42.26](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/a/a/aa9175ab871109336798ada9d9c206c5ad329914.jpeg)

**CONCLUSION :** Cannot support google login embed until II frontend support callback with other frontend

---

<div class="post-metadata">

**Author:** ![lmuntaner](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lmuntaner/32/5075_2.png) [@lmuntaner](https://forum.dfinity.org/u/lmuntaner)\
**Post date:** [September 10, 2025, 4:51am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/8 "2025-09-10T04:51:35Z")

</div>

Were you trying to connect your frontend to II’s backend?

---

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [September 10, 2025, 4:53am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/9 "2025-09-10T04:53:24Z")

</div>

Yes, Dumb me think it will work if I try to copy code from II to my frontend

---

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [September 10, 2025, 5:17am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/10 "2025-09-10T05:17:46Z")

</div>

> [@Internet identity version 2, bad UX or only my issue?](https://forum.dfinity.org/t/internet-identity-version-2-bad-ux-or-only-my-issue/57231):
>
> Hi everyone! The recent Internet Identity upgrade, while introducing a great OpenID integration, has a significant UX problem that negatively impacts integration. The Problem: A Confusing Extra Step Imagine you’ve successfully logged into a website using Google. You close your browser and come back later. You expect to be signed in automatically or, at worst, to just click “Log in with Google” again. But with the new II, this is what happens: First Login (as a new user): You see a nice, si…

it is great if we can continue on this post 💪

---

<div class="post-metadata">

**Author:** ![lmuntaner](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lmuntaner/32/5075_2.png) [@lmuntaner](https://forum.dfinity.org/u/lmuntaner)\
**Post date:** [September 10, 2025, 6:43am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/11 "2025-09-10T06:43:07Z")

</div>

Hehe, yes, sorry. OpenID providers need a set of valida authorized callback URLs, so they won’t work with any other frontend…

---

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [September 10, 2025, 6:54am UTC](https://forum.dfinity.org/t/embed-internet-identity-login-in-dapp-frontend/56760/12 "2025-09-10T06:54:20Z")

</div>

Yeah the main purpose of my intent is avoid bad UX from II, and I’m not understand much about google login flow.  
But like you said, if II team saw the UX is a problem then we dont need this feature at all. Just fix the flow like web3Auth, the adoption my be easy for new comer

[Here is good UX](https://youtu.be/3Gojzw-jD70?si=cf2NlqOJvJ6m9V_5)I mean but it only applied for first time using id.ai and with gmail never connect before
