funk101
12/13/2022, 11:12 AMrp_st
12/13/2022, 11:15 AMrp_st
12/13/2022, 11:15 AMfunk101
12/13/2022, 11:21 AMfunk101
12/13/2022, 12:32 PM[Symbol(Response internals)]: {
url: 'https://dev-5adad1716e1211ed8e078d5042b64ab1-us-east-1.aws.supertokens.io:3567/recipe/user/passwordhash/import',
status: 401,
statusText: 'Unauthorized',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
}
}
funk101
12/13/2022, 12:32 PMrp_st
12/13/2022, 12:33 PMfunk101
12/13/2022, 12:33 PMfunk101
12/13/2022, 12:35 PMfunk101
12/13/2022, 12:35 PMrp_st
12/13/2022, 12:36 PMfunk101
12/13/2022, 12:36 PMrp_st
12/13/2022, 12:37 PMfunk101
12/13/2022, 12:37 PMrp_st
12/13/2022, 12:37 PMrp_st
12/13/2022, 12:37 PMfunk101
12/13/2022, 12:37 PMconst url =
"https://dev-5adad1716e1211ed8e078d5042b64ab1-us-east-1.aws.supertokens.io:3567/recipe/user/passwordhash/import";
const response = fetch(url, {
method: "post",
body: JSON.stringify({
email: "jeff@jeffrenza.com",
passwordHash:
"$argon2i$v=19$m=16,t=2,p=1$TG9qbzU1NzE$rTOXWfhHVT+Q7wPn7PShSQ",
}),
headers: {
"Content-Type": "application/json",
api_key: "<my key>",
},
});
response.then((res) => console.log("res: ", res));
rp_st
12/13/2022, 12:38 PMapi-key
not api_key
funk101
12/13/2022, 12:38 PMrp_st
12/13/2022, 12:38 PMfunk101
12/13/2022, 12:40 PMrp_st
12/13/2022, 12:41 PMfunk101
12/13/2022, 1:22 PMrp_st
12/13/2022, 1:23 PMfunk101
12/13/2022, 1:32 PMResponse {
size: 0,
timeout: 0,
[Symbol(Body internals)]: {
body: PassThrough {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
disturbed: false,
error: null
},
[Symbol(Response internals)]: {
url: 'https://dev-5adad1716e1211ed8e078d5042b64ab1-us-east-1.aws.supertokens.io:3567/recipe/user/email/verify/token',
status: 200,
statusText: 'OK',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
}
}
funk101
12/13/2022, 1:34 PMfunk101
12/13/2022, 1:35 PMResponse {
size: 0,
timeout: 0,
[Symbol(Body internals)]: {
body: PassThrough {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
disturbed: false,
error: null
},
[Symbol(Response internals)]: {
url: 'https://dev-5adad1716e1211ed8e078d5042b64ab1-us-east-1.aws.supertokens.io:3567/recipe/user/passwordhash/import',
status: 400,
statusText: 'Bad Request',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
}
}
funk101
12/13/2022, 1:35 PMResponse {
size: 0,
timeout: 0,
[Symbol(Body internals)]: {
body: PassThrough {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
disturbed: false,
error: null
},
[Symbol(Response internals)]: {
url: 'https://dev-5adad1716e1211ed8e078d5042b64ab1-us-east-1.aws.supertokens.io:3567/recipe/user/passwordhash/import',
status: 200,
statusText: 'OK',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
}
}
jscyo
12/13/2022, 1:38 PMrp_st
12/13/2022, 1:39 PMfunk101
12/13/2022, 1:50 PM