Fixes a few issues with OAuth token (rel 932557)

Found while implementing solitude's client.