celestix/gotgproto

Client creation with session

l1ah1m opened this issue · 1 comments

Screenshot 2024-04-29 at 17 03 54

if i create a client with a ready session it still tries to authenticate the user. is there a way to cancel auth, if the session is passed?

If it still tries to authenticate then it means that your session is invalid. You can disable automatic reauthentication flow by setting NoAutoAuth option to true in ClientsOpts.

Note: This option has not been pushed to release yet but you can use it by doing:
go get github.com/celestix/gotgproto@beta