Skip to content

Khaledgarbaya/use-one-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A simple way to add opengraph authentication to your react app

Resources

License

Stars

Watchers

Forks

Packages

No packages published