Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compareSync and compare not working on AWS lambda #96

Closed
gate3 opened this issue Mar 2, 2019 · 2 comments
Closed

compareSync and compare not working on AWS lambda #96

gate3 opened this issue Mar 2, 2019 · 2 comments
Labels

Comments

@gate3
Copy link

gate3 commented Mar 2, 2019

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

@dcodeIO
Copy link
Owner

dcodeIO commented Mar 2, 2019

require('bcrypt-nodejs') isn't this package

Copy link

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!

@github-actions github-actions bot added the stale label Feb 25, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants