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);
|
||||
expect(ky.post).toBeCalledWith('/api/session/sign-in/password/phone', {
|
||||
expect(ky.post).toBeCalledWith('/api/session/sign-in/password/sms', {
|
||||
json: {
|
||||
phone,
|
||||
password,
|
||||
|
@ -130,7 +130,7 @@ describe('api', () => {
|
|||
}),
|
||||
});
|
||||
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: {
|
||||
phone,
|
||||
password,
|
||||
|
|
|
@ -57,7 +57,7 @@ export const signInWithPhonePassword = async (
|
|||
socialToBind?: string
|
||||
) => {
|
||||
const result = await api
|
||||
.post(`${apiPrefix}/sign-in/password/phone`, {
|
||||
.post(`${apiPrefix}/sign-in/password/sms`, {
|
||||
json: {
|
||||
phone,
|
||||
password,
|
||||
|
|
Loading…
Reference in a new issue