Hi @Venkat Maram , the "invalid_grant" error typically indicates that the authorization code or refresh token that was used to obtain an access token has expired or is invalid. This can happen for a number of reasons, such as the user revoking access to the application or the authorization code or refresh token being used after it has expired.
In the context of Azure AD B2C sign in with Google, it's possible that the issue is related to the user's Google account settings or permissions. For example, if the user has revoked access to the application or if the application does not have the necessary permissions to access the user's Google account, then the "invalid_grant" error could occur.
To troubleshoot this issue, you can try the following steps:
- Check the Google API Console to ensure that the application has the necessary permissions to access the user's Google account. Make sure that the correct scopes are enabled and that the application is authorized to access the user's Google account.
- Check the user's Google account settings to ensure that the application is authorized to access the user's Google account. If the user has revoked access to the application, then the "invalid_grant" error could occur.
- Check the Azure AD B2C logs to see if there are any errors or warnings related to the sign in with Google feature. This could provide more information about the cause of the issue.
- Try signing in with a different Google account to see if the issue is specific to the user's account or if it is a more general issue with the sign in with Google feature.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James