anthonyjgrove / react-instagram-login

A React Component for Instagram Login
MIT License
64 stars 25 forks source link

Accept redirectUri as prop #3

Closed jmporchet closed 7 years ago

jmporchet commented 7 years ago

This PR allows people to specify their own redirectUri as a property of the <InstagramLogin> button. It is useful for Single Page Applications.

Example:

<InstagramLogin
  clientId={conf.INSTAGRAM_CLIENT_ID}
  onSuccess={this.responseInstagramOK}
  onFailure={this.responseInstagramNotOK}
  redirectUri="http://test"
/>