const logout = () => {
const user = Pool.getCurrentUser();
if (user) {
user.signOut();
}
};
here's my Logout code.
I tried this same code and hosted my react app in the S3 static host. it's working properly on s3 generated URL. signout is working without any error
now I connected a domain to my s3 hosted site. domain doesn't have SSL.
domain format : http://{subdomain}.{domain}.co
I am able to log in and perform all Cognito operation. I am also getting a valid token . but during signout, it's not working. why ?
is it because I am running without SSL? how to fix it . here's my code snippet for cookie storage setup as well
const authenticate = async (Username, Password) => {
return await new Promise((resolve, reject) => {
const user = new CognitoUser({
Username,
Pool,
Storage: new CookieStorage({ domain: awsCookieStorageDomain , secure:false}),
});
How to fix it.