fhqvst / avanza

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

Is re-authentication required? #64

Open JakobWestergarden opened 2 years ago

JakobWestergarden commented 2 years ago

Hello!

Is it required to use the authentication function again after a certain timeperiod, or is the authentication valid until a new session is created?

ausrasul commented 2 years ago

Depends on your session settings in the mobile app or home page. I experienced a disconnect after 24 hours or 8 hours, don’t remember.

ausrasul commented 2 years ago

https://github.com/fhqvst/avanza/issues/20

tommiehansen commented 1 year ago

I experience a disconnect almost immediately.

Debugging one can override it by simply adding logic to not auth if time < x but there seem to be something broken in the codebase since overrides shouldn't be needed seeing there's logic for the auth and re-auth.