techvedika-authentication
v0.0.16
Published
# techvedika-authentication @techv/logger is a versatile logging package designed to handle various logging needs in your applications. It supports multiple logging targets, including local file systems, AWS CloudWatch, and Google Cloud Logging, making it
Downloads
240
Readme
TechVedika-NodeJS-CommonModules
techvedika-authentication
@techv/logger is a versatile logging package designed to handle various logging needs in your applications. It supports multiple logging targets, including local file systems, AWS CloudWatch, and Google Cloud Logging, making it suitable for a range of deployment environments
Installation
npm i techvedika-authentication
Setup
Before using the package, ensure that the necessary environment variables
are set according to your logging target:
Mention type of the log
BASE_AUTH_TYPE = "AWS" # or `ONELOGIN`
AWS
COGNITO_USER_POOL_ID: Your AWSCognito user pool ID.
COGNITO_CLIENT_ID: Your AWSCognito client ID.
COGNITO_CLIENT_SECRET: Your AWSCognito client secret key.
COGNITO_REGION: The AWS region where CloudWatch logs are stored.
Usage:
const TechvAuthentication = require('techvedika-authentication');
let techvauth = new TechvAuthentication();
techvauth.userSignUp(data);
Example
techvauth.userSignUp({});
Publish
For contributors, you need to have an npm account. Follow the steps below to publish:
npm login
npm publish