#@react-oauth/google
1 messages · Page 1 of 1 (latest)
you can set it to localhost
I mean the redirection uri, pass in 127.0.0.1 to the field
or just pass in localhost and check it
if it requires a scheme, pass it in as http://127.0.0.1 or http://localhost
just pass in the 127.0.0.1 or just localhost
that is the right place I've used localhost before
I think it's not the right place
if you don't have a live domain, you can try example.com
and then check if you still get that error, it's been a while I work with Google OAuth
oh I'm glad it works
now i got permission errors
but atlest the api works kinda
either
{
"error": {
"code": 403,
"message": "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.",
"status": "PERMISSION_DENIED"
}
}
or
{
"error": {
"code": 404,
"message": "Requested entity was not found.",
"status": "NOT_FOUND"
}
}
did you configure the SDK/library well, like did you pass in the appropriate data
you know you need the google-services.json
everything works
thank you alot
i will share this project when finished will be open source
I'm glad you were able to get it to work
@keen kernel you know if its possible to create an user api key using o auth?
because right now i would need to ship my api key with the app or let the users by them self create them here
don't ship your API key with the app, since you're open sourcing it, it is not advisable, you can include the link to the API key generation dashboard page in the documentation and ask users to create a GC app and generate their API key, it is not advisable to ship any form of API keys to the public because of bad actors, one can't imagine the length that bad actors can go to to misuse the API key and afterward the blame of whatever they did with the API key is going to be on the owner of the API key
I with I could automate this or don't have to use a own api provider server.
like an API to generate the Google Cloud API key? I don't think Google has, since API key is a one time thing and something that needs to be kept confidentially
@keen kernel could I be automated this with selenium if the user accepted and sees every step an confirms it