logout <- function(){
#some useless content
returndata <- object2jsonfile(list(message="Logout successful. Drive safely!"));
#Deletes the cookie
returndata$cookies <- list(
list(name="access_token", path="/home"),
list(name="token_type", path="/home"),
list(name="username", path="/home")
);
#return
return(returndata);
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.