awslabs / cognito-at-edge

Serverless authentication solution to protect your website or Amplify application
Apache License 2.0
168 stars 54 forks source link

Sign out - How can I sign out using Cognito-at-edge? #37

Closed George-Saad closed 2 years ago

George-Saad commented 2 years ago

How can I sign out using Cognito-at-edge? Is there any way to do it using the library, or do I need to do it using cloudfront-authorization-at-edge.

I am using React for the front-end, and am looking for best practice in this case, I think also using Amplify is an option here right?

jeandek commented 2 years ago

Hi @George-Saad,

The library currently does not support logging out (see #8). That issue contains a suggestion as to how you might implement this in your project using Lambda@Edge. Amplify would work as well if you are using it on the frontend.

Regards,