fhqvst / avanza

A JavaScript client for the unofficial Avanza API
MIT License
229 stars 59 forks source link

_authenticationTimeout no longer working #20

Open gustafg opened 6 years ago

gustafg commented 6 years ago

Full disclosure: I'm running with a different OTP patch than the one upstreamed here because I haven't yet updated my code. They are supposed to be functionally equivalent though.

I've noticed that Avanza now logs me out not after 24 hours but after 4 hours (that is the setting I have set in the WebUI).

Someone else observed this behaviour after switching to the new authentication path?

ausrasul commented 6 years ago

Same here, running same software as @gustafg but my WebUI is set to 8 hours, and I see "disconnected" exactly after 8 hours using this API.

There is another difference between @gustafg API OTP implementation and this one, which is the cookie handling. Not sure if this has any affect.