identity icon indicating copy to clipboard operation
identity copied to clipboard

Identity requests Approval for every transaction after cookie expires

Open this-is-simon opened this issue 4 years ago • 4 comments

I originally posted this in /frontend, but it was the wrong place. We're having an issue on Safari desktop with approvalRequired on the React web app we're building. I understand that Identity needs to request access again 1 week after login, but we are finding that even after approval is given, and the cookie is updated, Identity continues to request access for every transaction thereafter. i.e.:

Given that I'm using Safari And I logged in 1 week ago with access level 4 When I attempt to buy a coin Identity requires me to Approve transaction And when I Approve transaction, then it is successful But when I attempt another transaction Then Identity asks for approval again Despite the fact that the seed-hex-key in Cookies was correctly updated to last another week (i.e. now to expire 2 weeks from when I originally logged in)

We'd appreciate if you could look into this or provide some insight.

this-is-simon avatar Jul 06 '21 09:07 this-is-simon

I'd love to help figure this out. First, I'm wondering about what your local setup looks like. Are you running a local copy of Identity? If not, are you using localhost to develop your app? Is this reproducible on a real domain like myapp.com and identity.bitclout.com? I've seen lots of weird behavior when developing Identity locally.

maebeam avatar Jul 06 '21 17:07 maebeam

Thanks maebeam. I'm using identity.bitclout.com and a firebase hosted web-app, and that's where we noticed the issue. I also ran a local copy of Identity and I get the same behaviour.

this-is-simon avatar Jul 07 '21 08:07 this-is-simon

Would you be willing to share the URL of the firebase app so I can play with it?

maebeam avatar Jul 07 '21 22:07 maebeam

Of course, will send it to you privately :)

this-is-simon avatar Jul 08 '21 09:07 this-is-simon