sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

The provided grant has expired due to it being revoked, a fresh auth token is needed. SPFX graph mobile app

Open harshdamaniahd opened this issue 3 years ago • 17 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [X] mobile (iOS/iPadOS)
  • [X] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

Any SPFX Webpart deployed to teams , having graph connections is throwing this error in my tenant

The provided grant has expired due to it being revoked, a fresh auth token is needed. The user might have changed or reset their password. The grant was issued on '{authTime}' and the TokensValidFrom date (before which tokens are not valid) for this user is '{validDate}'. Additional Details Expected part of the token lifecycle - either an admin or a user revoked the tokens for this user, causing subsequent token refreshes to fail and require re-authentication. Have the user sign-in again.

image manifest file

Steps to reproduce

SPFX webpart calling graph api

Expected behavior

Should refresh the token

harshdamaniahd avatar Mar 23 '22 07:03 harshdamaniahd

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Mar 23 '22 07:03 ghost

Looks like related to this : https://github.com/SharePoint/sp-dev-docs/issues/7646

harshdamaniahd avatar Mar 23 '22 09:03 harshdamaniahd

Plus for another user, i got this message "Token request previously failed"

harshdamaniahd avatar Mar 23 '22 09:03 harshdamaniahd

@harshdamaniahd - can you try the latest thing proposed by @GrahamMcMynn in the issue you've mentioned: https://github.com/SharePoint/sp-dev-docs/issues/7646#issuecomment-1083361447

AJIXuMuK avatar Mar 30 '22 22:03 AJIXuMuK

@harshdamaniahd - can you try the latest thing proposed by @GrahamMcMynn in the issue you've mentioned: https://github.com/SharePoint/sp-dev-docs/issues/7646#issuecomment-1083361447

@AJIXuMuK Hi sorry i missed your notification. but it works when we sign in to SharePoint from browser. then open teams mobile client. i raised service request to Microsoft and they have acknowledged this as product bug. i am very afraid to delete the application, until there is some documentation from Microsoft.

harshdamaniahd avatar Apr 06 '22 17:04 harshdamaniahd

@GrahamMcMynn - could you please reassure @harshdamaniahd that it is safe to remove the app?

AJIXuMuK avatar Apr 14 '22 16:04 AJIXuMuK

@harshdamaniahd - Deleting the service principal will not help you. What you are seeing is unfortunately expected behavior right now. When you are using the mobile client are authentication is based on having previously logged into SharePoint. This is being fixed and the fix is currently being rolled out to production. Once it rolls to production your issue will be fixed in the mobile client.

GrahamMcMynn avatar Apr 14 '22 16:04 GrahamMcMynn

do we have timelines?

harshdamaniahd avatar Apr 17 '22 16:04 harshdamaniahd

Any update?

harshdamaniahd avatar Jun 02 '22 06:06 harshdamaniahd

Hi @harshdamaniahd - the fixes have been made however, they are still rolling out to production. Our current estimated delivery is the end of June.

GrahamMcMynn avatar Jun 02 '22 16:06 GrahamMcMynn

still rolling out

AJIXuMuK avatar Jun 28 '22 21:06 AJIXuMuK

We are eagerly waiting for the fix to finish rolling out. Any updates about the full rollout?

bolte04 avatar Jul 06 '22 13:07 bolte04

Are there any updates on this issue. This is very urgent because a large number of our customers are still not able to use our applications inside Teams.

netti01 avatar Jul 19 '22 11:07 netti01

This has just rolled out to prod in IOS on version 4.11.0 and above. Are you still seeing the issue?

GrahamMcMynn avatar Jul 19 '22 16:07 GrahamMcMynn

We are seeing the exact same issue on the teams desktop client as well - will the update also fix the issue on the desktop client?

bolte04 avatar Jul 20 '22 07:07 bolte04

@bolte04 - please open up a different issue as it is very unlikely to be the same issue if it is affecting desktop. We will need more details to investigate so it's better to track if with a separate issue.

GrahamMcMynn avatar Jul 20 '22 16:07 GrahamMcMynn

This has just rolled out to prod in IOS on version 4.11.0 and above. Are you still seeing the issue?

a quick update image inshort, i do not see the issue now

harshdamaniahd avatar Jul 22 '22 13:07 harshdamaniahd

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Aug 30 '22 18:08 ghost