a simple way to add opengraph authentication to your react app
npm install use-one-graph
👤 Khaled Garbaya [email protected]
- Twitter: @khaled_garbaya
- Github: @Khaledgarbaya
import React from "react"
import { useOneGraphAuth } from "use-one-graph"
const AuthContext = React.createContext()
const AuthProvide = ({ children }) => {
const auth = useOneGraphAuth("twitter", process.env.GATSBY_OG_APP_ID)
return <AuthContext.Provider value={auth}>{children}</AuthContext.Provider>
}
export { AuthContext, AuthProvide }
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2019 Khaled Garbaya [email protected].
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator
Thanks goes to these wonderful people (emoji key):
Khaled Garbaya 💻 📖 |
Matheus Gonçalves da Silva 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!