Fix for extending access and refresh tokens

Was trying to change the way oauth tokens are generated but ran into this problem - just a typo fix.