dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.16k stars 794 forks source link

How to clear cache on cognito #1748

Closed ps2-controller closed 6 months ago

ps2-controller commented 7 months ago

Hey, I'm using serverless offline with cognito. I define a user pool and user client in my serverless.yml, and in my app, I use Cognito to sign up users, set passwords, etc.

When I sign up a user, and then sign in with cognito, it works as intended - for example, gives me an error if I use the wrong password, but gives me the access token if I use the right one. It works even if I shut down my local server and then restart it using sls offline start, which indicates that it must be saved on my machine somewhere.

However, I'm not sure how to clear this data / restart from scratch -- so if I create some users when testing one thing, those users are still available in my offline cognito emulator, if I try to create new users with the same username I can't, etc.

Does anyone know how to clear this data?

ps2-controller commented 6 months ago

mistake on my end; was utilizing cloud cognito, not local