Fix OAuth token generation