skip to Main Content

Can Flutter Dio re-call POST with file upload after token refresh in Interceptor’s onError?

So, I have an interceptor set for api calls. It looks like this: class AuthorizationInterceptor extends Interceptor { @override void onRequest( RequestOptions options, RequestInterceptorHandler handler) async { if (options.headers.containsKey('requiresToken') && options.headers['requiresToken'] == false) { options.headers.remove('requiresToken'); super.onRequest(options, handler); } else {…

VIEW QUESTION

How to get access token using refresh token in DocuSign and PHP? – Laravel

I want to update my access token using the previous refresh token in DocuSign? I am getting { "error": "invalid_grant", "error_description": "unsupported_grant_type" } Below is how I made the request. $client_id = env('DOCUSIGN_CLIENT_ID'); $client_secret = env('DOCUSIGN_CLIENT_SECRET'); $encoded_client_id = utf8_decode(base64_encode($client_id)); $encoded_client_secret…

VIEW QUESTION
Back To Top
Search