Forums

google auth

when i try to authorization using authlib, i have invalid request error

@app.route('/registration/google') def registrationGoogle(): redirect_uri = url_for('registration_google', _external=True) return google.authorize_redirect(redirect_uri)

@app.route('/registration/google/redirection') def registration_google():

in google console redirect_uri: https://tato1999.pythonanywhere.com/registration/google/redirection its working on localhost correctly

This usually happens when there is a mismatch in redirect URIs. Verify that your redirect_uri variable is actually the same as the URI in the google console.