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

feat: improve session / peer storate & refactor auth flow #97

Open
wants to merge 4 commits into
base: beta
Choose a base branch
from

Conversation

Davincible
Copy link

Hey, great work on this lib!

While using it I ran into some issues, fixed a couple here.

New Session & Peer storage

  • Store session by phone number, this allows you to use the same database for multiple phone numbers
  • More options, to e.g. set the sql table prefix, to prevent collisions with your own tables in a project

Session storage updates might break existing storages, since I've added the phone nr field

Auth refactor

Auth flow code was a bit messy and hard to read / maintain, cleaned it up a bit

@celestix
Copy link
Owner

Hi @Davincible, Thank you for such a huge contribution! We really appreciate your efforts and time spent by you to improve the library. Your changes will be merged once they are tested and tried out by the moderators, thanks.

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

Successfully merging this pull request may close these issues.

2 participants