Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Error: PrefetchFailure (NoTokenProviderForUnauthenticatedPrefetch) with Basic JavaScript Consumer #83

Open
jjspscl opened this issue Dec 6, 2024 · 0 comments

Comments

@jjspscl
Copy link

jjspscl commented Dec 6, 2024

Hi 👋,

We've recently encountered an issue with the error:
PrefetchFailure (NoTokenProviderForUnauthenticatedPrefetch)
image

This occurred while using the JavaScript Basic Consumer example with the same configuration provided in both the official documentation.

Steps to Reproduce:

  1. Use the sample code provided in the JavaScript Basic Consumer example repository.
  2. Configure it with the appropriate options as described in the documentation.
  3. Attempt to prefetch files.

Observed Behavior:

The error PrefetchFailure (NoTokenProviderForUnauthenticatedPrefetch) is consistently thrown.

Investigation and Workaround:

While debugging, I discovered that changing the property name access_token to accessToken in the configuration resolves the issue.

Questions:

  1. Has there been a recent change to the implementation of the OneDrive API or the configuration options for the file picker?
  2. Should the documentation and examples be updated to reflect this change?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant