Skip to content

Client error: POST https://appleid.apple.com/auth/token resulted in a 400 Bad Request response: {"error":"invalid_client"} #38

@dhivya-picco

Description

@dhivya-picco

I have configured all the configuration for apple signin. It is redirect to apple site to get username and password. after that in callback, it is showing like this


Acceptance Criteria

  • invalid_client error from Apple token endpoint is caught and wrapped in a descriptive exception
  • Package documentation explains how to correctly generate the client_secret JWT
  • Optionally: provide a helper command or utility to generate/validate the client_secret

Test Coverage

  • Unit test: invalid_client Apple response is caught and rethrown as a descriptive exception
  • Integration test: correct client_secret generation flow does not trigger the error

WSJF Priority Score

  • Score: 3.25
  • User/Business Value: 5 (Recurring auth failure for misconfigured setups)
  • Time Criticality: 4 (Steady stream of affected users)
  • Risk Reduction/Opportunity Enablement: 4 (Better error handling reduces support burden)
  • Job Size: 4 points (S — error handling + docs)
  • Calculation: (5 + 4 + 4) ÷ 4 = 3.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    WSJF-3.25WSJF score 3.25bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions