@daeryun/dr_components 0.9.54 → 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,27 +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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
const json = yield res.json();
|
|
141
|
-
console.log('No redirect. Response:', json);
|
|
142
|
-
}
|
|
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
|
+
// }
|
|
143
138
|
});
|
|
144
139
|
testLogin();
|
|
145
140
|
// router.push(
|
|
@@ -172,31 +172,23 @@ const LoginContainer = ({
|
|
|
172
172
|
onClick={async () => {
|
|
173
173
|
const testToken = `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjE3NCwiZW1haWwiOiJ0ZXN0Zm9yZGFlcnl1bkBnbWFpbC5jb20iLCJwcm92aWRlciI6Imdvb2dsZSIsImlzTmV3IjpmYWxzZSwiaWF0IjoxNzUwMjk1NDkyLCJleHAiOjE3ODE4NTMwOTJ9.nqXEF8oMuQpha1Athzb_282Y9J7O5VyvTo67pjeMmLg`;
|
|
174
174
|
const testLogin = async () => {
|
|
175
|
-
|
|
176
|
-
`${process.env.NEXT_PUBLIC_SERVICE_DOMAIN}/api/lawfirm/app/auth/temp?jwt=${testToken}&state=${state}`,
|
|
177
|
-
{
|
|
178
|
-
method: 'GET',
|
|
179
|
-
redirect: 'manual', // 리다이렉트를 수동으로 처리
|
|
180
|
-
headers: {
|
|
181
|
-
'Content-Type': 'application/json'
|
|
182
|
-
},
|
|
183
|
-
credentials: 'include'
|
|
184
|
-
}
|
|
185
|
-
);
|
|
175
|
+
window.location.href = `${process.env.NEXT_PUBLIC_LAWFIRM_API}/api/app/auth/temp?jwt=${testToken}&state=${state}`;
|
|
186
176
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
+
// }
|
|
200
192
|
};
|
|
201
193
|
|
|
202
194
|
testLogin();
|