You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently tried deploying an app using this library to aws lambda and the compareSync and compare functions didn't work, my lambda function just timed out. I'd like to believe this is due to a limitation on lambda's side but i decided to post and ask for help in case. Below is a sample of my code
const ApiBuilder = require('claudia-api-builder');
const api = new ApiBuilder();
const encryptionHelper = require('bcrypt-nodejs');
api.post('/auth/login', async function ({post:{username, password}}) {
const user = await UserModel.findOne({ username })
const pResult = encryptionHelper.compareSync(password, result.password)
if(pResult){
return 'Success'
}else{
return 'Not found'
}
})
If it helps, I am deploying with claudiajs and claudiajs api builder and i am using the current version of this library
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!
I recently tried deploying an app using this library to aws lambda and the compareSync and compare functions didn't work, my lambda function just timed out. I'd like to believe this is due to a limitation on lambda's side but i decided to post and ask for help in case. Below is a sample of my code
If it helps, I am deploying with claudiajs and claudiajs api builder and i am using the current version of this library
The text was updated successfully, but these errors were encountered: