0
Fork 0
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:
simeng-li 2022-11-11 16:13:54 +08:00 committed by GitHub
parent c2e70e662a
commit 6691fd4446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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,