Skip to content

Commit

Permalink
hotfix: send token direcylt
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Nov 17, 2023
1 parent 1094714 commit 1d0cb76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/api/facebook/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = async (context) => {

const user = await app.models.users.findOne({ ra, email })


if (!user) {
return {
error: user,
Expand All @@ -16,6 +15,6 @@ module.exports = async (context) => {
}

return {
_redirect: `${WEB_URL}/login?token=${user.generateJWT()}`
token: user.generateJWT()
}
}

0 comments on commit 1d0cb76

Please sign in to comment.