/next-okta

Primary LanguageJavaScript

Next with Okta example

Okta configuration

  • create SPA application from okta developer console
  • add client id and okta domain in .env.local file so it will be picked up at the start of app
  • wrap private routes with HOC component in components/withAuth