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