This is the ThingsDB documentation for version v0, click here for the latest version!
Determines if a token exists in ThingsDB.
This function requires GRANT privileges on the @thingsdb scope.
This function does not generate an event.
has_token(key)
| Argument | Type | Description |
|---|---|---|
| key | str (required) | Token key to check. |
Returns true if the token exists and otherwise false.
This code shows an example use case of has_token():
has_token('XXXXXXXXXXXXXXXXXXXXXX');
Return value in JSON format
false