This is frontend part of integration with Okta and Firebase.
https://explore-firebase-37b42.web.app/ - Uses Firebase hosting for frontend part (React application) and Firebase functions for backend part (Nestjs application)
- Create
.env
file and fill next variables:
REACT_APP_OKTA_ORG_URL - You can copy your domain from the Okta Admin Console. (without 'https://')
REACT_APP_OKTA_CLIENT_ID - Find it in "Applications" section
Take these values from firebase project setting
REACT_APP_FIREBASE_apiKey
REACT_APP_FIREBASE_authDomain
REACT_APP_FIREBASE_projectId
REACT_APP_FIREBASE_storageBucket
REACT_APP_FIREBASE_messagingSenderId
REACT_APP_FIREBASE_appId
REACT_APP_FIREBASE_measurementId
REACT_APP_CUSTOM_TOKEN_ENDPOINT - Full URL to send JWT token to
REACT_APP_CUSTOM_TOKEN_ENDPOINT_LOCALHOST - Same usage as CUSTOM_TOKEN_ENDPOINT but for local development we may need another URL
- Run to install node modules
npm i
and make sure thay your Firebase CLI is up to date
npm install -g firebase-tools
- To run locally type
npm run start
- Or deploy app to firebase hosting
npm run deploy