supertokens-auth-react icon indicating copy to clipboard operation
supertokens-auth-react copied to clipboard

Overriding default provider's functions causes issues with styling

Open rishabhpoddar opened this issue 3 years ago • 0 comments

If we do the following:

let google = ThirdPartyEmailPassword.Google.init();

ThirdPartyEmailPassword.init({
    signInAndUpFeature: {
        providers: [{
            ...google,
            getRedirectURL: () => {
                return "https://auth.esper.cloud/auth/callback/google"
            }
        }]
    }
})

The rendered button for google no longer has the google branding.

rishabhpoddar avatar May 18 '22 10:05 rishabhpoddar