1.0.1 • Published 5 years ago
use-one-graph v1.0.1
a simple way to add opengraph authentication to your react app
Install
npm install use-one-graph
Author
👤 Khaled Garbaya kgarbaya@gmail.com
- 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 <kgarbaya@gmail.com>. 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!