mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
21 lines
404 B
JavaScript
21 lines
404 B
JavaScript
/**
|
|
* This is the first step of the login process (pake)
|
|
* @param {*} email
|
|
* @param {*} clientPublicKey
|
|
* @returns
|
|
*/
|
|
const login1 = (email, clientPublicKey) => {
|
|
return fetch("/api/v1/auth/login1", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify({
|
|
email: email,
|
|
clientPublicKey,
|
|
}),
|
|
});
|
|
};
|
|
|
|
export default login1;
|