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 graphiql for jwt auth #818

Merged
merged 1 commit into from
Jul 27, 2018
Merged

fix graphiql for jwt auth #818

merged 1 commit into from
Jul 27, 2018

Conversation

kevinhughes27
Copy link
Owner

part of #750

when I added JWT for authenticating graphql requests it broke graphiql for development because it didn't pass along the access token. To fix this I write the JWT to a cookie which graphiql picks up and sends along. This lets you login to the admin, refresh graphiql and then use the console as a logged in user.

Also worth pointing out that this is the same idea I want to use to ensure a smooth transition from signup into the new admin.

@kevinhughes27 kevinhughes27 merged commit af28794 into master Jul 27, 2018
@kevinhughes27 kevinhughes27 deleted the fix-graphiql branch July 27, 2018 10:47
@kevinhughes27 kevinhughes27 mentioned this pull request Jul 28, 2018
20 tasks
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.

1 participant