Skip to content

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

@jjspscl

Description

@jjspscl

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions