react-instagram-oauth
React component for a simple OAuth login with Instagram.
🚀 Get Started
Follow these steps to start using React Instagram Login:
-
Installation
# with npmnpm i react-instagram-oauth# with yarnyarn add react-instagram-oauth -
Import and configure component.
import React from "react";import InstagramLogin from "react-instagram-oauth";const authHandler = err dataconsole;;return<InstagramLogin====/>;; -
Find more info about keys and OAuth apps in Instagram official docs
📖 API
Property | Type | Default | Description |
---|---|---|---|
authCallback | function | required | Callback function which takes two arguments (error, authData) |
appId | string | required | App ID of your OAuth App |
appSecret | string | required | App Secret of your OAuth App |
redirectUri | string | required | Authorization callback URL of your OAuth App |
scopes | string[] | ["user_profile"] |
Scopes list. Read more on Permissions page |
buttonTheme | enum("gradient" , "simple" , "gradient_short" , "simple_short" ) |
"gradient" |
Button style theme |
className | string | "" |
Custom class name |