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

Fix headers promise #17

Merged
merged 3 commits into from
Nov 30, 2022
Merged

Fix headers promise #17

merged 3 commits into from
Nov 30, 2022

Conversation

freekrai
Copy link
Contributor

this PR fixes headers returning incorrect bearer token as:

if (this.directus.auth.token) {
    Object.assign(headers, {
        Authorization: `Bearer ${this.directus.auth.token}`,
    });
}

would set Bearer token as a promise rather than the actual token.

gatsby-node.js Outdated Show resolved Hide resolved
@freekrai freekrai merged commit 7413456 into main Nov 30, 2022
@freekrai freekrai deleted the fix_headers_promise branch November 30, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants