use-one-graph
v1.0.1
Published
a simple way to add opengraph authentication to your react app
Downloads
6
Readme
a simple way to add opengraph authentication to your react app
Install
npm install use-one-graph
Author
👤 Khaled Garbaya [email protected]
- Twitter: @khaled_garbaya
- Github: @Khaledgarbaya
🚀 Usage
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 }
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2019 Khaled Garbaya [email protected]. This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!