npm create feathersdev@latest app --framework svelte --app-id "<your-app-id>"
In your Svelte application, create a src/auth.ts file that allows to make authenticated requests to the backend like this:
This file exports an authFetch function that can be used just like the normal fetch API and will redirect to the login page if the user needs to log in.
A Svelte component using the Auth client and loading the message from one of the
You can find the full Vite + Svelte example application here.
Copyright © 2012 - 2025 feathers.dev