Cannot provide google auth
Answered
Atlantic mackerel posted this in #help-forum
Atlantic mackerelOP
Hey guys, Im trying to add google provider on next.js
I tried this:
But the error said:
I just use electron so usual nextjs way not work for me,.... how can I fix it?
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?
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
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