Generate access token on the fly by loggin in only once
I need some way in bing ads API from where a user can login only once and can create the new access token every time when he/she needs to access the campaigns from API. It should not ask the user to login again. Maybe some code or something to the user will be provided to me on first login which I will save for later use and use the same to create the new access token from the second time onwards.
Facebook provides similar functioanlity.
I am using PHP as my scripting language.
Eric Urban commented
You can use authorization code grant flow i.e. request user consent once, and thereafter use refresh tokens to request new access tokens.
I hope this helps!