Logout

Logout( all_tokens )
Logout( all_tokens )
Logout( all_tokens )
Logout( all_tokens )
logout( all_tokens )
logout( all_tokens )
Logout( all_tokens )
Logout( all_tokens )

Description

The Logout function deletes all tokens associated with the current session if its parameter is true, or just the token used in this request otherwise.

Parameters

Argument Type Definition and Requirements

all_tokens

Boolean

Optional - When set to true, all authentication tokens for the current session are deleted. The default is false, which means that only the current token is deleted.

Returns

A boolean value indicating whether the logout was successful or not.

Examples

curl https://db.fauna.com/ \
    -u fnAChGwBcAACAO70ziE0cfROosNJHdgBmJU1PgpL: \
    -d '{ "logout": true }'
client.Query(Logout(true));
System.out.println(client.query(Logout(Value(true))).get());
result, _ := client.Query(f.Logout(true))

fmt.Println(result)
client.query(Logout(true))
client.query(q.logout(True))
$client.query do
  logout true
end
client.query(Logout(all: true))
client.query(q.Logout(true))
  .then((ret) => console.log(ret))
HTTP/1.1 200 OK
{ "resource": false }
false
false
false
false
false
false
false
true

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve! documentation@fauna.com

Thank you for your feedback!