Need tokenGetter to be a callback, instead of being synchronous