Next.js Discord

Discord Forum

Cannot provide google auth

Answered
Atlantic mackerel posted this in #help-forum
Open in Discord
Atlantic mackerelOP
Hey guys, Im trying to add google provider on next.js
I tried this:


   <GoogleOAuthProvider clientId="secret">

            <div className="w-[120px]">
                <GoogleLogin type="icon" onSuccess={responseMessage} onError={errorMessage}/>
            </div>

        </GoogleOAuthProvider>

But the error said:

Failed to load resource: the server responded with a status of 403 ()
[GSI_LOGGER]: The given origin is not allowed for the given client ID.

I just use electron so usual nextjs way not work for me,.... how can I fix it?
Answered by Tiphiid wasp
did u add the URI's on credentials page?
View full answer

10 Replies

Tiphiid wasp
did u add the URI's on credentials page?
Answer
@Tiphiid wasp did u add the URI's on credentials page?
Atlantic mackerelOP
Yeah I added
nothing's showing
@Tiphiid wasp did u add the URI's on credentials page?
Atlantic mackerelOP
You mean like this?
@Atlantic mackerel You mean like this?
Tiphiid wasp
yes
add this too
http://localhost
under Javascript origins
Atlantic mackerelOP
ahh I just added too I'll wait and tell you the results
@Tiphiid wasp add this too http://localhost under Javascript origins
Atlantic mackerelOP
wow it's work perfectly!! thank you