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