Returning "invalid_grant" when Using Sign In with Apple

Last Updated: Oct 2, 2024

Overview

This article provides details on a user returning invalid_grant when using Sign In with Apple.

Applies To

  • Sign In with Apple

Solution

This is often caused by a mismatch of the Bundle ID. Make sure the Bundle ID is the same in the native app, and the Application configuration in the Auth0 dashboard 20, under Advanced Settings > Device Setting > App ID.

Apple also returns invalid_grant when the authorization code has been already consumed. Make sure the app is not sending a code that was already exchanged for an access_token.

Related References

1 Like