@daeryun/dr_components 0.9.55 → 0.9.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -119,18 +119,22 @@ const LoginContainer = ({ layoutClassName = ' relative h-[100vh] max-h-[1200px]
|
|
|
119
119
|
<button type="button" onClick={() => __awaiter(void 0, void 0, void 0, function* () {
|
|
120
120
|
const testToken = `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjE3NCwiZW1haWwiOiJ0ZXN0Zm9yZGFlcnl1bkBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzUwMjk1NDkyLCJleHAiOjE3ODE4NTMwOTJ9.nqXEF8oMuQpha1Athzb_282Y9J7O5VyvTo67pjeMmLg`;
|
|
121
121
|
const testLogin = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
window.location.href = `${process.env.NEXT_PUBLIC_LAWFIRM_API}/api/app/auth/temp?jwt=${testToken}&state=${state}`;
|
|
123
|
+
// const result = await fetch(
|
|
124
|
+
// `${process.env.NEXT_PUBLIC_SERVICE_DOMAIN}/api/lawfirm/app/auth/temp?jwt=${testToken}&state=${state}`,
|
|
125
|
+
// {
|
|
126
|
+
// method: 'GET',
|
|
127
|
+
// redirect: 'manual', // 리다이렉트를 수동으로 처리
|
|
128
|
+
// headers: {
|
|
129
|
+
// 'Content-Type': 'application/json'
|
|
130
|
+
// },
|
|
131
|
+
// credentials: 'include'
|
|
132
|
+
// }
|
|
133
|
+
// ).then(obj => obj.json());
|
|
134
|
+
// console.log('result', result);
|
|
135
|
+
// if (result?.result) {
|
|
136
|
+
// window.location.href = `${process.env.NEXT_PUBLIC_SERVICE_DOMAIN}/api/auth/get-auth?jwt=${testToken}`;
|
|
137
|
+
// }
|
|
134
138
|
});
|
|
135
139
|
testLogin();
|
|
136
140
|
// router.push(
|
|
@@ -172,21 +172,23 @@ const LoginContainer = ({
|
|
|
172
172
|
onClick={async () => {
|
|
173
173
|
const testToken = `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjE3NCwiZW1haWwiOiJ0ZXN0Zm9yZGFlcnl1bkBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzUwMjk1NDkyLCJleHAiOjE3ODE4NTMwOTJ9.nqXEF8oMuQpha1Athzb_282Y9J7O5VyvTo67pjeMmLg`;
|
|
174
174
|
const testLogin = async () => {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
175
|
+
window.location.href = `${process.env.NEXT_PUBLIC_LAWFIRM_API}/api/app/auth/temp?jwt=${testToken}&state=${state}`;
|
|
176
|
+
|
|
177
|
+
// const result = await fetch(
|
|
178
|
+
// `${process.env.NEXT_PUBLIC_SERVICE_DOMAIN}/api/lawfirm/app/auth/temp?jwt=${testToken}&state=${state}`,
|
|
179
|
+
// {
|
|
180
|
+
// method: 'GET',
|
|
181
|
+
// redirect: 'manual', // 리다이렉트를 수동으로 처리
|
|
182
|
+
// headers: {
|
|
183
|
+
// 'Content-Type': 'application/json'
|
|
184
|
+
// },
|
|
185
|
+
// credentials: 'include'
|
|
186
|
+
// }
|
|
187
|
+
// ).then(obj => obj.json());
|
|
188
|
+
// console.log('result', result);
|
|
189
|
+
// if (result?.result) {
|
|
190
|
+
// window.location.href = `${process.env.NEXT_PUBLIC_SERVICE_DOMAIN}/api/auth/get-auth?jwt=${testToken}`;
|
|
191
|
+
// }
|
|
190
192
|
};
|
|
191
193
|
|
|
192
194
|
testLogin();
|