pawsh-basic-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

pawsh-utils

Keys needed

Error Handling

  • res.locals
    • statusCode: set any http status codes e.g. 422, 400
    • userErrorMessage: error message for user to understand
    • errorLogName: log name for better filter on cloud logging
  • if LOCAL_HOST is not 'running', it will print error in Google Cloud Logging

Stripe:

  • NODE_ENV: dev, test, prod
  • STRIPE_SECRET_TEST_KEY: sk_xxx

Firebase Auth and FireStore

SendBird

Twilio Phone Number for sms

  • TWILIO_PAWSH_CALLER: valid phoneNumber

Initial setup

  • TWILIO_LIVE_ACCOUNT_SID
  • TWILIO_LIVE_AUTH_TOKEN

Phone verification

  • TWILIO_VERIFY_SERVICE_SID

Others

  • TWILIO_API_KEY

  • TWILIO_API_SECRET

  • TWILIO_APP_SID

  • TWILIO_SERVICE_SID

Readme

Keywords

none

Package Sidebar

Install

npm i pawsh-basic-utils

Weekly Downloads

10

Version

1.0.0

License

ISC

Unpacked Size

30.5 kB

Total Files

36

Last publish

Collaborators

  • chengpawshlim