chore: update the template to use the new @asgardeo/react SDK
#2
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
This pull request introduces several updates to enhance issue and pull request templates, improve project initialization, update dependencies, and refactor the codebase. The changes include replacing outdated templates, updating configurations, and modernizing the code to align with the latest libraries and best practices.
Issue and Pull Request Template Updates:
.github/ISSUE_TEMPLATE/bug.yml), requesting improvements (.github/ISSUE_TEMPLATE/improvement.yml), and proposing new features (.github/ISSUE_TEMPLATE/new_feature.yml) with structured fields and checklists. [1] [2] [3].github/pull_request_template.md).issue_template.mdandpull_request_template.md) in favor of the new structured formats. [1] [2]Project Initialization Enhancements:
.tmplr.ymlto improve prompts for initializing projects, including changes to naming conventions, version defaults, and fallback values. Removed unnecessary files during initialization.package.jsonto align with the updated initialization process, including dependency updates and template variable changes. [1] [2]Dependency and Configuration Updates:
package.jsonto use the latest versions of React, Asgardeo libraries, and ESLint plugins.eslint.config.jsto usedefineConfigand removed redundant plugin configurations for a cleaner setup. [1] [2]Codebase Refactoring:
src/App.jsxandsrc/main.jsxto replace@asgardeo/auth-reactwith@asgardeo/reactand@asgardeo/react-router, simplifying authentication and routing logic. [1] [2]vite.config.jsandREADME.mdfor better clarity and alignment with the updated libraries. (vite.config.jsL4-R4, Ff1ea3e0L1)These changes collectively modernize the project, improve developer experience, and ensure alignment with current best practices.
Related Issues
viteAsgardeo React boilerplate to use the new SDK javascript#110Related PRs
Checklist
Security checks