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")
}