このページは「「Auth0」で作る!認証付きシングルページアプリケーション」のサポートページ兼サンプルアプリケーションです。
https://nextpublishing.jp/book/9981.html
- トークンの更新サンプル: https://github.com/corocn/nuxt_auth0
- .env.sample をコピーして .envを作成。
- YOUR_CLIENT_IDおよびYOUR_DOMAINを設定する。
- frontend/nuxt.config.jsのauth0の項目も同様に設定する。
Ruby, NPM or Yarnが必要です。
バックエンドは Rails� の起動と同じです。
bundle install
bundle exec rails server
フロントエンドは Nuxt.js の起動方法と同じです。
cd frontend
yarn install
yarn dev
@corocn (Twitter/Github)までお問い合わせください。