use-one-graph

1.0.1 • Public • Published

Welcome to use-one-graph 👋

All Contributors

Version Documentation Maintenance License: MIT Twitter: khaled_garbaya

a simple way to add opengraph authentication to your react app

Install

npm install use-one-graph

Author

👤 Khaled Garbaya kgarbaya@gmail.com

🚀 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):

Khaled Garbaya
Khaled Garbaya

💻 📖
Matheus Gonçalves da Silva
Matheus Gonçalves da Silva

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Readme

Keywords

none

Package Sidebar

Install

npm i use-one-graph

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.4 kB

Total Files

10

Last publish

Collaborators

  • kgarbaya