I'm trying to use LoginWithGoogleAccount
in a web app and I keep getting Google API error code: redirect_uri_mismatch details: Bad Request
.
I've added https://<titleid>.playfabapi.com
as an authorized JavaScript origin and https://oauth.playfab.com/oauth2/google
as an authorized redirect URI.
I've also already configured the Google add-on with the client id and client secret in PlayFab.
I'm getting the ServerAuthCode from the Google OpenID flow and sending it to PlayFab via LoginWithGoogleAccount. Example request body:
{ "CreateAccount":false, "SetEmail":true, "ServerAuthCode":"auth code from google", "TitleId":"my title id" }
Am I'm missing something?
Thank you.