Skip to content

Latest commit

 

History

History
 
 

05_Environment_JS

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

environmentjs Function

Returns the derivate password hash using pbkdf2 getting the salt from the Environment.

Local Development

  1. Install dependencies with
npm install
  1. Run tests with
npm test
  1. Start your function locally
sf run function start -e PASSWORD_SALT="make this a random passphrase" --verbose
  1. Invoke your function locally
sf run function --function-url=http://localhost:8080 --payload='{"password":"test"}'