ebay_set_user_tokens_with_expiry
Set eBay user access and refresh tokens with custom expiry times, automatically refreshing an expired access token if the refresh token remains valid.
Instructions
Set user access and refresh tokens with custom expiry times. This is an enhanced version of ebay_set_user_tokens that accepts expiry times and can automatically refresh the access token if it's expired but the refresh token is valid. Useful when user provides tokens that may already be partially expired.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accessToken | Yes | eBay user access token | |
| refreshToken | Yes | eBay user refresh token | |
| accessTokenExpiry | No | Optional: Access token expiry time. If not provided, defaults to 2 hours from now. Can be ISO date string, Unix timestamp, or relative time (e.g., "in 7200 seconds") | |
| refreshTokenExpiry | No | Optional: Refresh token expiry time. If not provided, defaults to 18 months from now. Can be ISO date string, Unix timestamp, or relative time | |
| autoRefresh | No | If true and access token is expired but refresh token is valid, automatically refresh the access token. Default: true |