Simple proof of concept that demonstrates Strike OAuth Connect
Install dependencies:
npm install
This is a basic Next.js app. Run the development server:
npm run dev
All configuration is done through environment variables. Some default values are provided in .env.development for development purposes.
Available options are:
-
STRIKE_API_URI
URL of the Strike API. e.g. https://api.strike.me/v1 -
STRIKE_API_SCOPE
API Scopes to request. See https://docs.strike.me/api/ for possible values. e.g. 'openid offline_access profile partner.invoice.read' -
STRIKE_IDENTITY_SERVER_URL
URL of the Strike Identity Server. e.g. https://auth.strike.me -
STRIKE_IDENTITY_SERVER_CLIENT_ID
Strike OAuth Client ID. e.g. strike-oauth-example -
STRIKE_IDENTITY_SERVER_CLIENT_SECRET
Strike OAuth Client Secret. e.g. 1234567890 -
NEXTAUTH_SECRET
Secret used to encrypt the NextAuth.js JWT. e.g. jae6Yoox5eeMaewuzookeib5ieMoo9ce
View a demo at: https://strike-oauth-example.vercel.app/