V
V
volkov12feb2022-03-17 17:05:27
JavaScript
volkov12feb, 2022-03-17 17:05:27

Why does google login throw an error Error 400: invalid_request Permission denied to generate login hint for target domain?

I did authorization through Google, I click on the authorization button and gives this error Screenshots are attached

<script>
    function onSuccess(googleUser){
        let profile = googleUser.getBasicProfile()
        console.log('Email: ' + profile.getEmail())
        let token = googleUser.getAuthResponse().id_token
        console.log('Token: ' + token)
    }

    function onFailure(error){
        console.log(error)
    }

    function renderButton(){
        gapi.signin2.render('my-signin', {
            'scope': 'profile email',
            'width': 240,
            'height': 50,
            'longtitle': true,
            'theme': 'dark',
            'onsuccess': onSuccess,
            'onfailure': onFailure
        });
    }
</script>


6233401442cef931128825.png
6233401c94b61703719755.png
6233402400f50076736581.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AKaN0, 2022-04-09
@AKaN0

I assume that this is due to specifying ip in Url Credentials , there was a similar problem, after changing the url address from 127.0.0.1:8000 to localhost:8000 everything worked
625177262f8d6146717554.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question