Closed eugirdor closed 2 years ago
Good catch! This code used to be Promise/then/catch based before I refactored to async/await, so the return statement is probably a remnant of that... If you'd want to send a PR, please do! Otherwise, I'll adjust it in the code myself.
I think the issue is in this bit of code:
https://github.com/appy-one/acebase-server/blob/9d9e22d9d0cd94a8d273c1f12fd1eb50285c8ca7/src/routes/oauth2-signin.ts#L52-L72
It returns early and never executes the rest of the method, so the redirect to the
callbackUrl
never happens.I think it should probably use an
else
instead of thereturn
: