i was developing on http://127.0.0.1:3000 , my mistake was i did set my uri in google cloud console redirect uri to be http://127.0.0.1:3000 when i used http://127.0.0.1:3000/api/auth/callback/google it worked!