Hello, all! I have been experimenting with Compose...
# compose-web
p
Hello, all! I have been experimenting with Compose for Web and love the developer experience! I am now considering ways to embedd "Sign in with Google" button. I am currently exploring ways to use
kotlinx-html
to dynamically add code, but have not succeed to display the button this way. Is there a known path to integrate "Sign in with Google" with a Compose for Web application?
d
Several folk on this Slack have succeeded at that and posted libraries. Search history.
u
p
Thanks!
d
...as follow-up to this; I needed to integrate Auth0 and Cognito on separate KMP projects over the last week; and enjoyed using this library: https://github.com/kalinjul/kotlin-multiplatform-oidc It's still under development but already working, nice ergonomic API and active contributors - I'd recommend on that basis.
p
Thanks for sharing! In the specific case of using the "Sign in with Google" button [1] the only alternative we found so far is to start with HTML, establish an authenticated session, and then proceeding into the canvas-based Compose application. We are still exploring alternative techniques for this button and the "One Tap" flow [2]. [1] https://developers.google.com/identity/gsi/web/guides/display-button [2] https://developers.google.com/identity/gsi/web/guides/display-google-one-tap