feat: improve sveltekit example app with protected and admin routes
☕️ Reasoning
Not a bug. More of an improvement to the sveltekit example with proper reference to authentication and authorisation.
🧢 Checklist
- [x] Documentation (sort of)
- [ ] Tests (not applicable)
- [x] Ready to be merged
🎫 Affected issues
📌 Resources
⚠️ Notes
- I have seen that the live example https://sveltekit-auth-example.vercel.app/ and the code I just edited are not similar.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| auth-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 27, 2024 11:58am |
1 Skipped Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-auth-docs | ⬜️ Ignored (Inspect) | Visit Preview | Nov 27, 2024 11:58am |
@vishnuchandrappan is attempting to deploy a commit to the authjs Team on Vercel.
A member of the Team first needs to authorize it.
@vishnuchandrappan thanks for this update!
As you noticed, the deployed example is not the code yuo've edited. For context, we usually have 2 apps for each client/framework in this monorepo.
- The ones under
apps/dev/*, like the one you edited, are designed to be used for local development only. They're the ones that should be started with the root npm scriptdev:sveltekit(for example). - The other app you linked, is located under
apps/examples/*and these are designed only to be synced to their respective demo repos and then deployed via Vercel as legit demos for folks to play around with. i.e. theapps/examples/sveltekitapp is synced tonextauthjs/sveltekit-auth-example(see this file for sync details)
As a sidenote, there's another PR in flight updating the sveltekit demo app (apps/examples/sveltekit/*) here: #12287
It looks like this issue did not receive any activity for 60 days. It will be closed in 7 days if no further activity occurs. If you think your issue is still relevant, commenting will keep it open. Thanks!