mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(ui): sign-in with phone password api namespace (#2408)
This commit is contained in:
parent
c2e70e662a
commit
6691fd4446
2 changed files with 3 additions and 3 deletions
|
@ -115,7 +115,7 @@ describe('api', () => {
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
await signInWithPhonePassword(phone, password);
|
await signInWithPhonePassword(phone, password);
|
||||||
expect(ky.post).toBeCalledWith('/api/session/sign-in/password/phone', {
|
expect(ky.post).toBeCalledWith('/api/session/sign-in/password/sms', {
|
||||||
json: {
|
json: {
|
||||||
phone,
|
phone,
|
||||||
password,
|
password,
|
||||||
|
@ -130,7 +130,7 @@ describe('api', () => {
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
await signInWithPhonePassword(phone, password, 'github');
|
await signInWithPhonePassword(phone, password, 'github');
|
||||||
expect(ky.post).toHaveBeenNthCalledWith(1, '/api/session/sign-in/password/phone', {
|
expect(ky.post).toHaveBeenNthCalledWith(1, '/api/session/sign-in/password/sms', {
|
||||||
json: {
|
json: {
|
||||||
phone,
|
phone,
|
||||||
password,
|
password,
|
||||||
|
|
|
@ -57,7 +57,7 @@ export const signInWithPhonePassword = async (
|
||||||
socialToBind?: string
|
socialToBind?: string
|
||||||
) => {
|
) => {
|
||||||
const result = await api
|
const result = await api
|
||||||
.post(`${apiPrefix}/sign-in/password/phone`, {
|
.post(`${apiPrefix}/sign-in/password/sms`, {
|
||||||
json: {
|
json: {
|
||||||
phone,
|
phone,
|
||||||
password,
|
password,
|
||||||
|
|
Loading…
Reference in a new issue