Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle errors upon plugin installation #224

Merged
merged 5 commits into from
Apr 6, 2023
Merged

Conversation

frederikprijck
Copy link
Member

@frederikprijck frederikprijck commented Apr 4, 2023

Changes

__checkSession is a private method that is only called when the plugin is being installed.
We should ensure errors are not thrown as that would fail running the application and installing the plugin.

Instead, errors are available using the errors property on the plugin.

On top of that, we added the possibility to provide an errorPath to control where the SDK should redirect to when an error occured. If omitted, our SDK will redirect back to / when an error occured.

References

Closes #223

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language

Checklist

@frederikprijck frederikprijck changed the title Do not throw errors during plugin installation Gracefully handle errors upon plugin installation Apr 5, 2023
@frederikprijck frederikprijck marked this pull request as ready for review April 5, 2023 07:07
@frederikprijck frederikprijck requested a review from a team as a code owner April 5, 2023 07:07
@frederikprijck frederikprijck enabled auto-merge (squash) April 5, 2023 08:01
@frederikprijck frederikprijck merged commit 1b517a0 into main Apr 6, 2023
@frederikprijck frederikprijck deleted the fix/223 branch April 6, 2023 09:57
@frederikprijck frederikprijck mentioned this pull request Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught error when error thrown inside custom Auth0 Action
2 participants