## 概要 [Task: 1361](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/OMDSDictation/_sprints/taskboard/OMDSDictation%20%E3%83%81%E3%83%BC%E3%83%A0/OMDSDictation/%E3%82%B9%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88%203-2?workitem=1361) - B2Cログイン後、IDトークンを引数にログインAPIを呼ぶ - ログインAPIレスポンスのアクセストークン・リフレッシュトークンをlocalStorage/storeにセット - ログインAPIが成否でページ遷移先を変更する ## レビューポイント - IDトークンの取得方法は下記リンクを参考にした - https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-react/FAQ.md#how-do-i-handle-the-redirect-flow-in-a-react-app ## UIの変更 - https://ndstokyo.sharepoint.com/:f:/r/sites/Piranha/Shared%20Documents/General/OMDS/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88/Task1361?csf=1&web=1&e=Fo5NQZ ## 動作確認状況 - ローカルで動作確認 ## 補足 - WIPです。 - 以下の実装は行っていません。 - アクセストークンの更新処理 - トークンの期限が切れていた場合、Topページにリダイレクトする処理
19 lines
397 B
TypeScript
19 lines
397 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import env from "vite-plugin-env-compatible";
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
host: true,
|
|
port: 3000,
|
|
open: true,
|
|
},
|
|
build: {
|
|
outDir: "build",
|
|
sourcemap: true,
|
|
minify: false,
|
|
},
|
|
plugins: [env(), tsconfigPaths(), react()],
|
|
});
|