fix(apple): don't run auth middleware during redirect

This commit is contained in:
Kalista Payne 2025-08-08 13:36:19 -05:00
parent dad1440138
commit 3078af8f2a

View file

@ -151,9 +151,7 @@ api.loginSocial = {
// Called by apple for web authentication. // Called by apple for web authentication.
api.redirectApple = { api.redirectApple = {
method: 'POST', method: 'POST',
middlewares: [authWithHeaders({ middlewares: [],
optional: true,
})],
url: '/user/auth/apple', url: '/user/auth/apple',
async handler (req, res) { async handler (req, res) {
if (req.body.id_token) { if (req.body.id_token) {