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

Enhance Authentication Credentials Initialization #85

Open
Swapnilden opened this issue Jul 26, 2024 · 2 comments · May be fixed by #86
Open

Enhance Authentication Credentials Initialization #85

Swapnilden opened this issue Jul 26, 2024 · 2 comments · May be fixed by #86
Assignees

Comments

@Swapnilden
Copy link

Is your feature request related to a problem? Please describe.
The current initAuthCreds function initializes authentication credentials but lacks customization options and error handling. This can be frustrating when trying to adjust the initialization process for different use cases or debugging issues when they arise.

Describe the solution you'd like

I'd like to see the initAuthCreds function enhanced with the following features:

  1. Customizable parameters to allow users to set specific values for fields like registrationId, advSecretKey, nextPreKeyId, and firstUnuploadedPreKeyId.

  2. Error handling to catch and log errors during the initialization process, providing better debugging information.

  3. Improved documentation, including more detailed comments for each field in the returned object.

  4. Integration with a logging system to track when credentials are initialized or if any issues occur.

Describe alternatives you've considered
An alternative could be creating a wrapper function around initAuthCreds to handle customizations and error handling externally. However, integrating these features directly into initAuthCreds would provide a cleaner and more cohesive solution.

Additional context
Integrating these features directly into the initAuthCreds function would make it more robust and user-friendly. It would allow for better customization, easier debugging, and a more informative development process.

@Swapnilden
Copy link
Author

Please assign me this issue under GSSOC'24

@anupammaurya6767
Copy link
Owner

@Swapnilden go ahead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants