Skip to content

syuraj/graphql-authentication-using-fb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook authentication in backend using passport and mongoose

Summary

Uses express based passport-facebook-token library to validate facebook access_token sent through front-end after user authentication

Uses jsonwebtoken to sign and validate jwt

GraphQL queries get decoded usercontext in context

Setup

  1. Save FACEBOOK_APP_ID & FACEBOOK_APP_SECRET in .env file or environment variables

Demo

graphql auth demo

About

Authenticating grapqhl endpoints using FB as auth-provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published