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
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