It's a matter of consistency: with the original code, somebody using the URL to find out the currently logged in token(s) needs to parse JSON when no token is logged in, and a string when one or more tokens are logged in. Do you prefer 
    var token = JSON.stringify(tokens)
instead of what I wrote?