I have a simple asp .net core application which was built based upon our sample code.
I authorized the user and accessed the users profile data. Then i went to my account permissions and removed the applciations access.
At this point if i had been using a installed application the library would pop up and request access again. In this case the application crashes.

GoogleApiException: Google.Apis.Requests.RequestError
Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. [401]
Errors [
Message[Invalid Credentials] Location[Authorization - header] Reason[authError] Domain[global]
]
Google.Apis.Requests.ClientServiceRequest.ParseResponse(HttpResponseMessage response)
Clearing the cookies in the web app did fix this.
My question is this an issue with the library that we are forcing a clear, or is this something we need to recommend that users catch some how to force a clear of the cookies so that the user does not get an error in this manner?
Im really not a web dev so i guess i am fishing for opinions on how best to advice our developers.
I have cross posted this here How to catch authorization fail, clear cookies and request access again
I have a simple asp .net core application which was built based upon our sample code.
I authorized the user and accessed the users profile data. Then i went to my account permissions and removed the applciations access.
At this point if i had been using a installed application the library would pop up and request access again. In this case the application crashes.
Clearing the cookies in the web app did fix this.
My question is this an issue with the library that we are forcing a clear, or is this something we need to recommend that users catch some how to force a clear of the cookies so that the user does not get an error in this manner?
Im really not a web dev so i guess i am fishing for opinions on how best to advice our developers.
I have cross posted this here How to catch authorization fail, clear cookies and request access again