setting accesstoken in response