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

feat(react): support passing handlers for actions #73

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

mvantellingen
Copy link
Member

Support passing custom handlers for logout and refresh actions

Support passing custom handlers for logout and refresh actions
Copy link

changeset-bot bot commented Dec 17, 2024

🦋 Changeset detected

Latest commit: ff91e71

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@labdigital/federated-token-react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

packages/react/src/provider.tsx:303

  • The error message should be more descriptive. Consider changing it to: "No refresh token endpoint or refresh token mutation provided in options".
throw new Error("No refresh token endpoint or mutation provided");

packages/react/src/provider.tsx:340

  • The error message should be more descriptive. Consider changing it to: "No logout endpoint or logout mutation provided in options".
throw new Error("No logout endpoint or mutation provided");
@mvantellingen mvantellingen merged commit e04dd55 into main Dec 17, 2024
5 checks passed
@mvantellingen mvantellingen deleted the feature/react-custom-handlers branch December 17, 2024 18:03
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.

1 participant