SDK
SDK Golang v2.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

Logout #

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

Arguments #

Copied to clipboard!
func (a *Auth) Logout() error

Return #

Return an error or nil if the credentials are successfully deleted

Usage #

Copied to clipboard!
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")
}