OneDrive / onedrive-sdk-dotnet-msa-auth-adapter

Other
25 stars 22 forks source link

OnlineIdAuthenticationProvider expires? #51

Open LazyGepid opened 7 years ago

LazyGepid commented 7 years ago

I'm able to easily authenticate using OnlineIdAuthenticationProvider, but it seems like my authentication is expiring and I can't figure out how to renew it. Actually, I'm only guessing because I after a while I get "unexpected result 0x80070032" error. I notice when I authenticate, the properties of my AccountSession don't give me a refresh token or indicate that I need to refresh. It does show that the session expires after 5 hours, but how would I refresh it? I've tried just creating a new session, but that suffers the same problem. Are there any guidelines for this?