The redirect URI in the request, http://pernjakovic.com/check-google/, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/940430976251-i7ih12sqrqgomeqc5uojmu19pf21mck0.apps.googleusercontent.com?project=940430976251