Opscribe is a React landing page for a local-first RPA product and a public host for the GitHub OAuth browser login flow used by the site.
npm startruns the app locallynpm test -- --watchAll=falseruns the test suite oncenpm run buildcreates the production bundlenpm run deploypublishes the build to GitHub Pages
This site starts GitHub's browser authorization flow and captures the returned
callback parameters on /auth/callback/. The frontend does not exchange
the returned code for a token.
- Create a GitHub OAuth app.
- Use your deployed site origin as the Homepage URL.
- Use your deployed
/auth/callback/route as the Authorization callback URL. - Configure the frontend with:
REACT_APP_GITHUB_CLIENT_ID- optionally
REACT_APP_GITHUB_SCOPE - production deploys can provide the client ID through
.env.production
When GitHub redirects back, the callback page:
- reads
code,state, and any error query params, - validates the returned
stateagainst the browser session that started login, - stores the callback result locally so the landing page can display it.
This is enough to verify that browser redirect auth is wired correctly, but it does not complete secure token exchange or establish a real authenticated session.
public/CNAME is set to www.opscribe.pro so GitHub Pages can serve the app from the planned custom domain.
package.json also points homepage at https://www.opscribe.pro so the
production build resolves callback and asset paths against the same root domain.