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")
}
Edit this page on Github(opens new window)