gotgproto icon indicating copy to clipboard operation
gotgproto copied to clipboard

feat: improve session / peer storate & refactor auth flow

Open Davincible opened this issue 1 year ago • 1 comments

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

Davincible avatar Oct 24 '24 02:10 Davincible

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.

celestix avatar Oct 24 '24 17:10 celestix

Hello @Davincible! Thank you for this valuable addition :) It has been merged.

celestix avatar Nov 29 '24 09:11 celestix