mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 11:46:23 +00:00
fix(apple): don't run auth middleware during redirect
This commit is contained in:
parent
dad1440138
commit
3078af8f2a
1 changed files with 1 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue