Avoid redundant call to getToken()

Even without speaking about performance, I think this makes more sense.
Merge pull request #6 from Dorian/patch-1

Avoid redundant call to getToken()