@SereySoksan Hi, IIRC I don't think I found a reliable way. To receive the data you need to provide the keys, and as long as you have them (perhaps from your previous live session), you're ok. But at the moment the server requests reauthentication, you are screwed, because this has to be done from the browser - you are taken to their website where you confirm your password, then potentially some 2FA validation, often there is a ReCaptcha or other automation protection and you just cannot pass this in a unit test.
Now I would probably just handle this in the application itself - make sure the system is stable if the returned values fail, and make sure I get notification about the problem - either through something like Bugsnag, or just add my own email/slack notification when this happens so I can inspect as soon as possible. But I don't think reliably passing the OAuth2 flow in the test is possible. Maybe if they only wanted username & password, but at the moment they split the login form to several steps, add some 2FA or captcha, it gets tough to the point where it wasn't worth for me to pursue further.
Hope it helped, maybe someone else has a better idea.