4
0
forked from crowetic/commerce

Updated login handler

This commit is contained in:
Luis Alvarez 2020-10-22 16:28:22 -05:00
parent 228f2141e7
commit a72c6e49de

View File

@ -17,8 +17,7 @@ const loginHandler: LoginHandlers['login'] = async ({
// Passwords must be at least 7 characters and contain both alphabetic
// and numeric characters.
// TODO: Currently not working, fix this asap.
const loginData = await login({ variables: { email, password }, config })
await login({ variables: { email, password }, config, res })
res.status(200).json({ data: null })
}