feat: Destroy session + introduce http config (#7336)

This commit is contained in:
Oli Juhl
2024-05-19 12:40:28 +02:00
committed by GitHub
parent ce75755ac6
commit bf4724b8e6
26 changed files with 568 additions and 396 deletions

View File

@@ -34,7 +34,7 @@ medusaIntegrationTestRunner({
const authService: IAuthModuleService = appContainer.resolve(
ModuleRegistrationName.AUTH
)
const { jwt_secret } =
const { http } =
appContainer.resolve("configModule").projectConfig
const authUser = await authService.create({
entity_id: "store_user",
@@ -42,7 +42,7 @@ medusaIntegrationTestRunner({
scope: "store",
})
const token = jwt.sign(authUser, jwt_secret)
const token = jwt.sign(authUser, http.jwtSecret)
const response = await api.post(
`/store/customers`,