function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YjaYja 

No_Oauth_State: State was not valid

Hello,

After being inactive for a while and reconnecting to salesforce through OAuth, I've the following error and can't figure out whats the issue.

The url contain:
ErrorCode=No_Oauth_State&ErrorDescription=State+was+not+valid

User-added image
SwethaSwetha (Salesforce Developers) 
HI YG,
As per the auth provider flow the NO_Auth_State error will occur if the call back URL state variable doesn't match with salesforce state propagate value.

You need to ask the external auth provider to capture the logs for the failure transaction for clarification.
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.
 
Thank you