get the access token correctly from authSettings
Merge pull request #4 from hoist/fix/get_accesstoken

get the access token correctly from authSettings