Skip to content

feat: Added OTP generator#86

Closed
pratikacharya1234 wants to merge 5 commits intosocioy:devfrom
pratikacharya1234:branch-otp-generator
Closed

feat: Added OTP generator#86
pratikacharya1234 wants to merge 5 commits intosocioy:devfrom
pratikacharya1234:branch-otp-generator

Conversation

@pratikacharya1234
Copy link
Contributor

No description provided.

Copy link
Member

@arpan404 arpan404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it export from main file

@arpan404 arpan404 added proposal design proposals or ideas for future development status: in progress work that is actively being developed or refined labels Feb 13, 2025
@arpan404 arpan404 linked an issue Feb 13, 2025 that may be closed by this pull request
Copy link
Member

@arpan404 arpan404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add jsdocs on each method like alphanumeric

@arpan404 arpan404 changed the base branch from pro to dev February 13, 2025 01:35
Copy link
Member

@arpan404 arpan404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add validation to length, use Number.isInteger to know if the value is integer

Also make the otp length max to be of length 30 and minimum of 4, if the validation fails, use logger.warn from joorLogger and use default values length: 8
Add validation to custom one: for eg, if length of charSet must minimum 10, also validate if the charSet is string

@pratikacharya1234 pratikacharya1234 deleted the branch-otp-generator branch February 13, 2025 04:31
@pratikacharya1234 pratikacharya1234 restored the branch-otp-generator branch February 13, 2025 04:35
@pratikacharya1234 pratikacharya1234 deleted the branch-otp-generator branch February 13, 2025 04:35
@pratikacharya1234 pratikacharya1234 restored the branch-otp-generator branch February 13, 2025 04:35
@pratikacharya1234 pratikacharya1234 deleted the branch-otp-generator branch February 22, 2025 02:52
@pratikacharya1234 pratikacharya1234 restored the branch-otp-generator branch February 22, 2025 02:53
@pratikacharya1234 pratikacharya1234 deleted the branch-otp-generator branch February 22, 2025 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal design proposals or ideas for future development status: in progress work that is actively being developed or refined

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#Feature: A OTP generation package

2 participants