icloud - Apple Sign-In Callback Not Triggering - "PayloadTooLargeError: request entity too large" in Node.js -

I am implementing Sign in with Apple in my Node.js application, but the callback function is not being

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

  1. 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信