How to integrate Amazon Cognito with SvelteKit Auth
Hi. In this post, I'll show how to create a SvelteKit project and integrate Amazon Cognito for Sign up, Sign in and logout functionalities. Before proceeding further, you will need to have npm and node installed on your system. SvelteKit is a framework for developing robust, performant web application rapidly using Svelte. More about SvelteKit can be get here. Steps 1. Initialize a SvelteKit project by typing in CMD: npm create svelte@latest <app_name> 2. Under "Which Svelte app template?", choose `Skeleton project`, This will generate barbones scaffolding structure for your new SvelteKit app. 3. Under "type checking with TypeScript", choose `No`. 4. Under "..additional option", you can choose to add ESLint, Prettier, Playwright or Vitest. If you want to keep the app simple for now, you can skip this step too. 5. Press Enter and the project is ready. Next step is to change directory to our app name. Here, it is `frontendshopkart`. Install all th...