Skip to content

Commit

Permalink
refactor(core): rename the path
Browse files Browse the repository at this point in the history
rename the path
  • Loading branch information
simeng-li committed Jun 25, 2024
1 parent 9a93118 commit a6a918e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/routes/experience/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const experienceApiRoutesPrefix = '/experience';
export const experienceApiRoutesPrefix = '/experience/auth';
7 changes: 5 additions & 2 deletions packages/integration-tests/src/api/experience-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ import { type PasswordSignInPayload } from '@logto/schemas';

import api from '../api.js';

import { experienceApiPrefix } from './const.js';
import { experienceApiPrefix, experienceIdentificationApiRoutesPrefix } from './const.js';

type RedirectResponse = {
redirectTo: string;
};

export const signInWithPassword = async (cookie: string, payload: PasswordSignInPayload) =>
api
.post(`${experienceApiPrefix}/sign-in/password`, { headers: { cookie }, json: payload })
.post(`${experienceIdentificationApiRoutesPrefix}/sign-in/password`, {
headers: { cookie },
json: payload,
})
.json();

export const submit = async (cookie: string) =>
Expand Down

0 comments on commit a6a918e

Please sign in to comment.