Skip to content

Conversation

@gyaneshgouraw-okta
Copy link
Contributor

📝 Pull Request Description

🔄 Changes

  • Adds getDomain and getClientId methods to the useAuth0 hook.
  • These methods allow access to the Auth0 domain and client ID configured in the Auth0Provider.
  • Updates the documentation with examples for the new methods.

🧪 Testing

  • A new unit test was added for the Auth0Provider.
  • The test verifies that getDomain() and getClientId() return the correct values.
  • All existing and new tests pass.

💥 Impact

  • This change allows developers to access the Auth0 configuration from any component within the provider's scope without prop drilling.
  • The public API of the useAuth0 hook is extended with two new methods.
  • There is no significant performance impact.

📋 Checklist

  • Code follows the project's coding standards
  • Tests have been added/updated
  • Documentation has been updated
  • All tests are passing

@gyaneshgouraw-okta gyaneshgouraw-okta requested a review from a team as a code owner December 18, 2025 12:02
@gyaneshgouraw-okta gyaneshgouraw-okta marked this pull request as draft December 18, 2025 12:37
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.

2 participants