keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Safari logout doesnt work

Open MichalNemec opened this issue 3 years ago • 3 comments

create basic keystone and create user. Then do logout it just refreshes the page. Maybe it has something to do with extending user schema

logging out correctly

safari Version 15.5 (17613.2.7.1.8)

chrome works normally.

MichalNemec avatar May 26 '22 10:05 MichalNemec

Hi @MichalNemec I am not able to replicate on the same version of Safari with the keystone with-auth example. Do you have a minimal keystone example where this issue exists? Thanks,

borisno2 avatar Jun 06 '22 02:06 borisno2

Hi @MichalNemec I am not able to replicate on the same version of Safari with the keystone with-auth example. Do you have a minimal keystone example where this issue exists? Thanks,

Unfortunately i dont. But from testing ive done. I just could not log out, maybe macos version has to do with this? because i.e. some sessions are not stored or cookies not set on my macbook. Google chrome just worked out of the box. Lets see if there is more people with this problem, so it can be fixed.

MichalNemec avatar Jun 06 '22 04:06 MichalNemec

Hi @MichalNemec

I had this issue in Chrome but not Safari weirdly. Adjusting my session config seemed to fix the problem:

let sessionMaxAge = 60 * 60 * 24 * 30; // 30 days
const session = statelessSessions({
    maxAge: sessionMaxAge,
    secret: sessionSecret!
});

Have only tested locally. The issue seemed to be having a value for secure, but I couldn't say why removing it fixed the problem.

JoinThisBand avatar Jun 08 '22 21:06 JoinThisBand

Closing this one as not reproducible, if any further information comes to light feel free to reopen

borisno2 avatar Jan 10 '23 03:01 borisno2