set uid & accesstoken