Shopper manual signup
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
// The key "encryptedReq" should generate from the below way.
export const encryptedReq = async (toEncrypt, publicKey) => {
const buffer = Buffer.from(toEncrypt);
const encrypted = crypto.publicEncrypt(publicKey, buffer);
return encrypted.toString('base64');
};{
"ok": false,
"statusCode": 400,
"data": {
},
"message": "Email is already in use"
}{
"ok": true,
"result": {
"access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjBkZTIyMDk5LTEzM2MtNDAzZi1hMTgxLWRmMjFhMGM2M2NhNiIsImlhdCI6MTY1NjQxNTU5OSwiZXhwIjoxNjU2NDE3Mzk5fQ.sfQxkh-LislyDFRJVjaWeCqIy4Gg6SK5yGUSf8zA4gU",
"refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjBkZTIyMDk5LTEzM2MtNDAzZi1hMTgxLWRmMjFhMGM2M2NhNiIsImlhdCI6MTY1NjQxNTU5OSwiZXhwIjoxNjU2NDE3Mzk5fQ.sfQxkh-LislyDFRJVjaWeCqIy4Gg6SK5yGUSf8zA4gU",
"newResendTime": 1656415629744
}
}