RocketChat / Rocket.Chat.Go.SDK

Go SDK for REST API and Realtime api
MIT License
60 stars 58 forks source link

rest client.Logout should clear c.auth #71

Open TheMeier opened 1 year ago

TheMeier commented 1 year ago

c.Login returns if c.auth is not nil https://github.com/RocketChat/Rocket.Chat.Go.SDK/blob/master/rest/users.go#L82

So in Logout() c.auth should be cleared. Of cause it would be also nice if it was cleared on other places in the code where it can be detected that the login of the client is not valid anymore