You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Customizable parameters to allow users to set specific values for fields like registrationId, advSecretKey, nextPreKeyId, and firstUnuploadedPreKeyId.
Error handling to catch and log errors during the initialization process, providing better debugging information.
Improved documentation, including more detailed comments for each field in the returned object.
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.
The text was updated successfully, but these errors were encountered:
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:Customizable parameters to allow users to set specific values for fields like
registrationId
,advSecretKey
,nextPreKeyId
, andfirstUnuploadedPreKeyId
.Error handling to catch and log errors during the initialization process, providing better debugging information.
Improved documentation, including more detailed comments for each field in the returned object.
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 intoinitAuthCreds
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.The text was updated successfully, but these errors were encountered: