Actually, you can't create a logout link like that or you'll always get the token error. To create a direct link to the logout, please check out our
Common Support Question
guide for the quick hoop you have to go through to make it work.
I hope that helps,
Alex