refactor(react): refactor react sdk to provide server side support #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Refactor client-side useEffects:
Moved
useEffects
out of React UI components to be used in both the react and nextjs. Developed a separate general SignIn UI component that can be reused in both React and NextjsImplement Global Data Store:
Identified that the
Local Storage
cannot be used in the Nextjs SDK. Created a new global data store for state management in nextjs. Usedmemory-cache
package similar to the node SDK .Import Common Components:
Server-Side API Implementation:
authorize
API call on the server side. Pass the client ID and secret in the app native authorize API call.Related Issues
Related PRs
Checklist
Security checks