First of all thank you for writing this in C#!
However I have followed your instructions and have provided my own useragent from chrome in the network tab as well as the "__Secure-next-auth.session-token" and "cf_clearance", however when the code reaches " RefreshSessionAsync()" and tries to get a response it always seems to return forbidden. I would love to get this running so any help as to what I am doing wrong would be greatly appreciated!
I noticed some other values in the chrome network tab such as "__Host-next-auth.csrf-token" and "__cf_bm", I see no instructions for those but was just wondering perhaps they are also needed for authentication?
looking forward to your response :)
James