You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can confirm the following modifications on init function worked for me:
consterror=url.searchParams.get("error");// if error or (`code` and `state`) params are present we need to complete the auth flowif(error||code&&state){returncompleteAuth(env);}
When using the init flow it will skip over completeauth when errors occur and therefore error handling is skipped.
scenario is as follows:
and here https://github.com/parlir/client-js/blob/master/src/smart.ts#L303
https://github.com/parlir/client-js/blob/master/src/smart.ts#L758
https://github.com/parlir/client-js/blob/master/src/smart.ts#L768
I think a quick fix to this issue could be to check for error parameter and call the completeauth function if error parameter exists on step 4.
@vlad-ignatov I'm happy to open a PR for this let me know wyt.
The text was updated successfully, but these errors were encountered: