mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-16 06:52:08 +00:00
login handler
This commit is contained in:
@@ -40,32 +40,6 @@ export default function SessionItem({
|
||||
}
|
||||
}
|
||||
|
||||
// async function loginSession(authRequestId: string, sessionId: string) {
|
||||
// setLoading(true);
|
||||
// const res = await fetch(
|
||||
// "/api/login?" + new URLSearchParams({ sessionId, authRequestId }),
|
||||
// {
|
||||
// method: "DELETE",
|
||||
// headers: {
|
||||
// "Content-Type": "application/json",
|
||||
// },
|
||||
// body: JSON.stringify({
|
||||
// id: id,
|
||||
// }),
|
||||
// }
|
||||
// );
|
||||
|
||||
// const response = await res.json();
|
||||
|
||||
// setLoading(false);
|
||||
// if (!res.ok) {
|
||||
// // setError(response.details);
|
||||
// return Promise.reject(response);
|
||||
// } else {
|
||||
// return response;
|
||||
// }
|
||||
// }
|
||||
|
||||
const validPassword = session?.factors?.password?.verifiedAt;
|
||||
const validPasskey = session?.factors?.webAuthN?.verifiedAt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user