docs(example): restructure example app into per-feature hooks and class demos - #1655
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (44)
📝 SummarySummary by CodeRabbit
WalkthroughThe example app replaces React Navigation screens with a root ChangesExample application migration
Estimated code review effort: 4 (Complex) | ~45 minutes Change: Other Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant App
participant Auth0Provider
participant FeatureDemo
participant ResultView
App->>Auth0Provider: provide domain and clientId
Auth0Provider->>FeatureDemo: expose Auth0 hooks
FeatureDemo->>Auth0Provider: execute Auth0 operation
FeatureDemo->>ResultView: display result or error
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| const MY_ACCOUNT_AUDIENCE = `https://${config.domain}/me/`; | ||
| const MY_ACCOUNT_SCOPE = | ||
| 'read:me:authentication_methods delete:me:authentication_methods update:me:authentication_methods read:me:factors create:me:authentication_methods'; | ||
| 'read:me:authentication_methods delete:me:authentication_methods ' + |
There was a problem hiding this comment.
didnt understand rationale behind this change
Rebuilds the example app into a single, feature-complete reference that demonstrates every SDK capability, organized section by section. Each feature has a hooks version wired up and running, plus a class-based version kept alongside as unused reference code, so consumers can compare both approaches.
Navigation is dropped in favor of a single sectioned ScrollView. Web stays a separate single-file example limited to web-supported features. No custom styling beyond spacing — just the default React Native components.
Sections: Web Auth, Credentials Manager, Direct Auth API, Passwordless, MFA, My Account API, Passkeys, and Advanced tokens.
This also removes the now-unused react-navigation dependencies from the example workspace.