- Amazon AppFlow
- Salesforce OAuth 2.0 JWT Bearer フロー
- Named credential 指定ログイン
- CURLコマンドを使ってfreee APIにアクセスする
- Bad Request
エラー
status:400,content:{"error":"invalid_grant","error_description":"expired authorization code"}
トークンが無効か、有効期限が切れています。もう一度お試しください。
It's typical for access tokens to expire after two hours, so if you're encountering expiration in a shorter timeframe, it might be due to specific policies in your SF Environment. Check the settings in your connected app's OAuth Policies.
Also, check the following article links, which might help you resolve this issue.
https://help.salesforce.com/s/articleView?id=sf.connected_app_manage_oauth.htm&type=5