Logo-amall

Grant: missing session or misconfigured provider

Last active 14 days ago

9 replies

1 views

  • HI

    Google auth callback url always return this.

  • EL

    @Pilou Do you have some ideas about this?

  • PI

    I donโ€™t know. Whatโ€™s the callback you put in your Google config?

  • HI

    https://wemwmthlrcjgrckfhfbg.auth.ap-south-1.nhost.run/v1/signin/provider/google/callback

  • PI

    just tried to connect to your application without any problem, both with safari and chrome in going to
    https://wemwmthlrcjgrckfhfbg.auth.ap-south-1.nhost.run/v1/signin/provider/google

  • GL

    Having the same issue. Google client and secret work fine locally using nhost cli, but fail in the version deployed through vercel. It seems this error is a configuration issue that causes some cookies to get lost after authentication happens. Any ideas what settings I could try to double check? Settings -> Sign-in methods looks ok, and so does settings -> authentication.

  • EL

    Hey @Glen Albo ๐Ÿ‘‹ That's strange. If you could create a GitHub issue so we track this, it would be great ๐Ÿ™

  • EL

    https://github.com/nhost/hasura-auth

  • GL

    Hi again, I solved this issue, it was because I had not set the allowed javascript URI's in google's console. To solve the error, you have to add your URIs to this part of the google oauth settings as well (screenshot).

    I had originally done that, but since it is not explicitly mentioned in the nhost google oauth guide (https://docs.nhost.io/authentication/sign-in-with-google) I removed it because I was running into another error and was trying to fix that by following the docs exactly. In the end I fixed that other error by spinning up a fresh nhost project and copying everything over.

    I have created a PR to fix this (https://github.com/nhost/nhost/pull/1751) in case that is helpful!

Last active 14 days ago

9 replies

1 views