Giter Club home page Giter Club logo

refresh-token's Introduction

Getting Started with Refresh Token

Available Scripts

In the project directory, you can run:

npm start or npm run start:dev

Runs the app in development mode against eBay sandbox environment.

npm run start:prod

Runs the app in production mode against eBay production environment.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Required .env Files

In the root project directory (same folder as package.json), you'll need to add two .env files:

.env.development.local (ebay: sandbox)

HTTPS=true
REACT_APP_AUTHORIZE_URL=https://auth.sandbox.ebay.com/oauth2/authorize
REACT_APP_CLIENT_ID=
REACT_APP_CLIENT_SECRET=
REACT_APP_REDIRECT_URI=
REACT_APP_SCOPES=https://api.ebay.com/oauth/api_scope/sell.inventory+https://api.ebay.com/oauth/api_scope/sell.fulfillment
REACT_APP_PROXY_URL=https://api.sandbox.ebay.com

.env.production.local (eBay: production)

HTTPS=true
REACT_APP_AUTHORIZE_URL=https://auth.ebay.com/oauth2/authorize
REACT_APP_CLIENT_ID=
REACT_APP_CLIENT_SECRET=
REACT_APP_REDIRECT_URI=
REACT_APP_SCOPES=https://api.ebay.com/oauth/api_scope/sell.inventory+https://api.ebay.com/oauth/api_scope/sell.fulfillment
REACT_APP_PROXY_URL=https://api.ebay.com

The .env files tell the code how to interact with eBay. For both .env files, please fill in following fields using the eBay access keys page:

Configuring Redirect URI

This application requires a redirect URI be set in order to tell eBay where to redirect during authorization. To configure, go to eBay user tokens page and do the following:

plot

  1. Click Add eBay Redirect URL button
  2. Fill in Your auth accepted URL with https://localhost:3000
  3. Click OAuth option at the bottom
  4. Copy RuName (eBay Redirect URL name) to applicative .env files under the variable REACT_APP_REDIRECT_URI

This process will need to be completed for both sandbox and production.

Miscellaneous

Please contact @ryanbeaz if you have any questions or run into issues.

refresh-token's People

Contributors

ryanbeaz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.