Revoke Token

Revoke a user token. idealy this is called whenever your application starts, this will perform a silent login request in the background.

https://api.nucle.cloud/v1/user/revoketoken
Request Header
Name Type Required Description
UserToken string True The User Token, available from the Login methods.
Request Body
Name Type Required Description
Response
Name Type Description
200 OK object Login result object.
400 Bad Request object The outer wrapper for all responses with errors.
Login result object
Name Type Description
userToken string The user token, to be saved for future authenticated requests
User Token life time can be customized in the dashboard, project settings.
Defaults :
Real user : 480 hours
External login : 480 hours
Anonymous user : 6 hours
user Object The user object
User Object
Name Type Description
id string The id of the user.
userName string The user name of the user.
displayName string The display name of the user.
email string The email of the user.
creationDate Date Time The creation date of the user.
lastLogin Date Time The last login activity date of the user.
ip string The public ip of the user.
city string the city of the user
region string The region of the user
country string The country of the user.
latitude string The latitude coordinate of the user.
longtitude string The lontitude coordinate of the user.
Error Object
Name Type Description
code int Numerical HTTP code
status string Description of the HTTP code.
errorMessage string Description of the error