{"id":6409,"date":"2021-11-24T06:20:57","date_gmt":"2021-11-24T06:20:57","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/salesforce\/?p=6409"},"modified":"2024-09-04T05:37:54","modified_gmt":"2024-09-04T05:37:54","slug":"work-around-for-vs-code-issue-error-authenticating-the-refresh-token-due-to-expired-access-refresh-token","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2021\/11\/24\/work-around-for-vs-code-issue-error-authenticating-the-refresh-token-due-to-expired-access-refresh-token\/","title":{"rendered":"Work around for VS Code Issue: Error authenticating the refresh token due to: expired access\/refresh token"},"content":{"rendered":"\n<p>While working on Salesforce project using VS Code you\/user might notice that the VS Code\u2019s refresh command suddenly stopped working. It would give the error <em>&#8220;Error authenticating with the refresh token due to: expired access\/refresh token&#8221;<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-red-color has-text-color has-link-color wp-elements-899489d8eceac9649e1c7604387af69c\"><strong>Error authenticating with the refresh token due to: expired access\/refresh token<\/strong><\/h2>\n\n\n\n<p>You would not find any solution online, so mentioned below are the solution details that you can follow. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Firstly, delete the \u201c.sfdx\u201d folder from the project folder (which gets created automatically for Salesforce project) <\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-11-144910.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-11-144910.jpg\" alt=\"SFDX Folder - Needs Deletion\"><\/a><\/center>\n<font size=\"2\"><center><i>SFDX Folder &#8211; Needs Deletion<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Secondly, re-authorize the org. <\/li>\n\n\n\n<li>And finally refresh\/Deploy metadata from Salesforce.<\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-11-135139.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-11-135139.jpg\" alt=\"SFDC - Metadata Refresh\"><\/a><\/center>\n<font size=\"2\"><center><i>SFDC &#8211; Metadata Refresh<\/i><\/center><\/font>\n\n\n\n<p>To sum up, using the steps mentioned above, you can fix the error in the VS Code.<\/p>\n\n\n\n<p>We hope you may find this blog resourceful and helpful. If you still have concerns and need more help, please get in touch with us at&nbsp;<a href=\"mailto:salesforce@greytrix.com\"><strong>salesforce@greytrix.com.<\/strong><\/a><\/p>\n\n\n\n<p style=\"text-align: justify\"><b>About Us<\/b><\/br>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> \u2013 a globally recognized and one of the oldest Sage Development Partner and a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners and Sage PSG across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.<br><br> Greytrix has some unique solutions for Cloud CRM such as <a href=\"\">Salesforce Sage integration<\/a> for <a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/integration\/\">Sage X3<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-100-integration\/\">Sage 100<\/a> and <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-300-integration\/\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/data-migration-support\/\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Integrated App development<\/a>, Custom App development and Technical Support business partners and end users. Salesforce Cloud CRM integration offered by Greytrix works with Lightning web components and supports standard opportunity workflow. Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star rated app listed on <a href=\"https:\/\/appexchange.salesforce.com\/appxListingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<br> The GUMU&#x2122; Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.<br><br> For more information on our Salesforce products and services, contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n\n\n\n<p><strong>Related Posts<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2021\/11\/18\/how-to-create-and-implement-custom-salesforce-notification-using-process-builder\/\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2021\/11\/18\/how-to-create-and-implement-custom-salesforce-notification-using-process-builder\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create (and Implement) Custom Salesforce Notification using Process Builder<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2016\/10\/06\/convenience-added-to-process-builder\/\" target=\"_blank\"><strong>Convenience added to Process Builder<\/strong><\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2018\/09\/29\/resolve-process-builder-error-while-importing-data-using-gumu\/\" target=\"_blank\"><strong>Resolve Process Builder error while importing data using GUMU&#x2122;<\/strong><\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2019\/09\/09\/gumu-new-feature-using-standard-opportunity-workflow-functionality-in-salesforce\/\" target=\"_blank\"><strong>GUMU&#x2122; New Feature \u2013 Using Standard Opportunity Workflow functionality in Salesforce<\/strong><\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2019\/09\/16\/gumu-new-feature-using-standard-opportunity-workflow-functionality-in-salesforce-part-2\/\" target=\"_blank\"><strong>GUMU&#x2122; New Feature \u2013 Using Standard Opportunity Workflow functionality in Salesforce-Part 2<\/strong><\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>While working on Salesforce project using VS Code you\/user might notice that the VS Code\u2019s refresh command suddenly stopped working. It would give the error &#8220;Error authenticating with the refresh token due to: expired access\/refresh token&#8221; Error authenticating with the refresh token due to: expired access\/refresh token You would not find any solution online, so\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2021\/11\/24\/work-around-for-vs-code-issue-error-authenticating-the-refresh-token-due-to-expired-access-refresh-token\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":9430,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1216,1217,367,748,1215,753,852],"class_list":["post-6409","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-salesforce-srv","tag-refresh-token-erro","tag-refresh-token-error","tag-salesforce","tag-vs-code","tag-vs-code-refresh-token","tag-vs-code-sfdx","tag-vscode"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/6409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=6409"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/6409\/revisions"}],"predecessor-version":[{"id":9431,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/6409\/revisions\/9431"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media\/9430"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=6409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=6409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=6409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}