I am implementing Sign in with Apple in my Node.js application, but the callback function is not being triggered after entering credentials. Instead, I receive the following error:
PayloadTooLargeError: request entity too large
Here’s how I am configuring the redirect URL options for Apple authentication:
const params = {response_type: "code id_token",client_id: APPLE_CLIENT_ID,redirect_uri:APPLE_REDIRECT_URL,scope: "email name",response_mode: "form_post",};
What I've Tried:
1.Increased the request body size limit in my Express server using body-parser
- Verified the callback URL to ensure it's correct and accessible.
Issue:
The callback URL is not being hit, meaning my server does not receive the Apple authentication response.
The error PayloadTooLargeError suggests that the response body size might be exceeding the allowed limit, but increasing the limit in body-parser did not resolve it.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744991525a4604936.html
评论列表(0条)