SDK
SDK Golang v3.x
2

Logout #

Revokes the user's token & unsubscribe them from registered rooms.

Arguments #

func (a *Auth) Logout() error

Return #

Return an error or nil if the credentials are successfully deleted

Usage #

kuzzle.Auth.Login("local", json.RawMessage("{\"username\":\"foo\",\"password\":\"bar\"}"), nil)
err := kuzzle.Auth.Logout()
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("Success")
}