added in oauth fo dev

This commit is contained in:
2021-11-15 14:49:44 +00:00
parent 891106bcc9
commit 7c9cc31d75
20 changed files with 137 additions and 97 deletions
+3 -2
View File
@@ -28,7 +28,7 @@ import {
getLPA,
updateCase,
createCase,
getSASToken,
getToken,
} from "../actions";
import { setLPA } from "../store/lpa/action";
@@ -139,7 +139,8 @@ const Home = (props) => {
export const getServerSideProps = wrapper.getServerSideProps(
(store) =>
async ({ query, req, res }) => {
const token = await getSASToken();
let token = await getToken();
token = token.access_token;
const [appealTypeData, lpaData] = await Promise.all([
await getAppealsTypes(token),