Skip to content

How can I use the included google login button with auth-code flow? #393

Description

@lukeetMrQ

Hi there,

First off, thank you for creating and maintaining this incredibly useful library!

I'm implementing a sign-in flow that requires using the auth-code method to send the code to my backend. I see that the useGoogleLogin hook supports this perfectly.

I also noticed the library includes a great, pre-styled button that matches Google's guidelines perfectly, which is fantastic. However, I can't seem to find a way to use this component and get an auth code from it.

This leads me to a question: am I expected to use the useGoogleLogin hook and build my own replica of the button UI you already provide, or am I missing a simpler way to combine these two features?

Thanks for any clarification you can provide!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions