question

gench1590 avatar image
0 Likes"
gench1590 asked ·

update Auth'n'auth token through API

Can I get the Auth'n'auth token through API? Every time I get the Auth'n'auth token, I need to input the account password on the page. The process is very troublesome. In addition, how to update and extend the Auth'n'auth token through API after expiration.

token
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @gench1590 ,

Please follow the guide mentioned in the link given below to know the process of getting the token by API flow.

Ref: https://developer.ebay.com/devzone/guides/features-guide/content/basics/Tokens-MultipleUsers.html

Auth'n'Auth tokens is valid for 18 months from the date it was generated.

After the expiration of a Auth'n'Auth token your application needs to take an user to go through Auth&Auth consent flow to get a new token.


Ref: https://developer.ebay.com/DevZone/guides/features-guide/default.html#Basics/Tokens-About.html?

Best Regards ,
eBay Developer Support

·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

adonialtd avatar image
0 Likes"
adonialtd answered ·

if you use Auth'n'auth, you have the possibility to "refresh" the auth token.
https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html
https://developer.ebay.com/api-docs/static/oauth-consent-request.html
https://developer.ebay.com/api-docs/static/oauth-refresh-token-request.html


if you're using oAuth, the token validity will have an expired time (2 hours, if I remember)

·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.