sveltekit-cognito-auth Svelte Themes

Sveltekit Cognito Auth

@auth/sveltekit + cognito oidc + authenticated secure websockets via AWS Api gateway

Overview

quick demo of cognito as an @auth provider via sveltekit

extra:

sveltekit websocket client connecting to AWS API Gateway via wss & using cognito auth via a query param

Getting started

go to your cognito pool create app client:

Allowed callback URLs http://localhost:5173/auth/callback/cognito

OAuth grant types Authorization code grant

OpenID Connect scopes email openid phone profile

ALLOW_CUSTOM_AUTH ALLOW_REFRESH_TOKEN_AUTH ALLOW_USER_SRP_AUTH

Client secret

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes