Repository navigation
feat(add): wire Angular, Vue and SvelteKit web apps - #261
Merged
Merged
Conversation
seamless add now detects Angular, Vue and SvelteKit beside React, installs the matching binding (and a router when the app has none), and prints the code for each file: the provider or plugin, the bundled sign-in screens as routes, and the signed-in and signed-out guards. Angular does not read .env, so its printed config carries the backend URL. Nuxt and Svelte without SvelteKit are reported, not wired. Closes #248
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #248. The last half of it:
seamless addnow wires Angular, Vue and SvelteKit web apps on the new@seamless-auth/angular(0.2.0),@seamless-auth/vueand@seamless-auth/svelte(0.1.0) bindings, beside React.What changes
@angular/core. The entry is app.config.ts, then app.module.ts, then main.ts.vue, excluding Nuxt. It also finds the file the router is created in.@sveltejs/kit. Kit 3 imports from#lib, Kit 2 from$lib.vue-router,@angular/router) are installed with the binding.VITE_API_URLin.env.local..env, so no file is written and the backend URL goes in the printedprovideSeamlessAuthcall.seamlessAuthRouteswithauthGuardandguestGuardin app.routes.ts.createSeamlessAuthRoutes()and guards in the router file, thenapp.use(createSeamlessAuth(...)). An app with no vue-router gets a whole router, plus a reminder to render<RouterView />.src/lib/auth,ssr = falseplus the root layout's session and navigator, then the eight screen pages withrequireAuthandrequireGuestloads.#lib/auth.js: Kit 3 maps#lib/*tosrc/lib/*as written, so svelte-check cannot resolve it without the extension.src/core/webSnippets.ts. README,seamless help addand a minor changeset are updated. The "does not wire yet" line no longer points at feat(add): add Seamless Auth to existing Go, Rust, Python, Angular, Vue and Svelte projects #248.Verification
ng new(Angular 22),create-vue --ts --router, andsv create(SvelteKit 3). Each was paired with an Express backend.seamless add --localon each and pasted the printed code into the app. Each build passed:ng build,vue-tscplusvite build, andsvelte-checkplusvite build./was guarded and redirected to/login./api/mereturned 200./login, and/api/methen returned 401.create-vue --tswith no router): vue-router was installed, and the printed whole-router code type-checks and builds.npm testpassed 1265 tests. Coverage is 98.81 statements, 96.14 branches and 99.23 lines.