Skip to content

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

License

Notifications You must be signed in to change notification settings

maceip/sveltekit-cognito-auth

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published