fix issue where token may be undefined

Awesome work!

When logging out I get an error that @api_access_token is nil. Thus .delete can not be called on @api_access_token

I am logging in via the browser.