苹果登录的invalid_grant问题记录
最近在集成SignInApple时候一直报invalid_grant的问题。查阅各种文档也传参也没啥问题,网上各种资料写的也不是很清楚。
最终找到官方论坛是因为client_id传递数据不对:developer.apple.com/forums/thread/...
关于apple登录的配置
配置不做过多介绍。
参考:github.com/Ahilmurugesan/socialite...
composer require ahilmurugesan/socialite-apple-helper
php artisan socialite:apple
Enter Team Id : apple开发者teamId
Enter Key Id: apple开发者后台创建privateKey对应的id
Enter Client Id : 关键是这个client_id.如果你是Web应用 SignInAplle这里传递是apple开发者后台创建的serviceId;如果是Native应用,这里传递是NativeApp的bundleId;
Enter Auth Key: apple开发者后台创建的key文件
Enter client secret refresh interval(days): apiServer生成的Jwt_token过期时间
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: