Skip to content

jessedvrs/graphql-passport-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-passport-example

Getting started

  • $ yarn
  • $ yarn start
  • Go to http://localhost:4000
  • Now, try to query for some delicious cakes. You should get an authorization error, since you're not passing any authorization header, yet. To do so, you'll have to inject the header somehow (e.g. using a Chrome plugin).

When using the BearerStrategy, the header must look like:

Authorization: Bearer 4w3s0m3-t0k3n

Demo

Demo

About

NodeJS example of authentication in GraphQL using Passport

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published