Add support to return access code
Add get access token function