Feat(auth): Remove auth provider entity (#6314)

**What**
- remove auth provider entity

**Why**
- The auth provider entity was not really used anywhere

**How**
- Keeping loader behavior as is but removing the 

Co-authored-by: Sebastian Rindom <7554214+srindom@users.noreply.github.com>
This commit is contained in:
Philip Korsholm
2024-02-06 07:54:34 +00:00
committed by GitHub
co-authored by Sebastian Rindom
parent b2eaac8cb1
commit 882aa549bd
37 changed files with 179 additions and 1223 deletions
@@ -3,7 +3,6 @@ import ContainerLoader from "../../../../src/loaders/container"
import { MikroOrmWrapper } from "../../../utils"
import { SqlEntityManager } from "@mikro-orm/postgresql"
import { asValue } from "awilix"
import { createAuthProviders } from "../../../__fixtures__/auth-provider"
import { createAuthUsers } from "../../../__fixtures__/auth-user"
import { createMedusaContainer } from "@medusajs/utils"
@@ -26,7 +25,6 @@ describe("AuthUser Service", () => {
service = container.resolve("authUserService")
await createAuthProviders(testManager)
await createAuthUsers(testManager)
})
@@ -66,7 +64,7 @@ describe("AuthUser Service", () => {
it("should list authUsers by provider_id", async () => {
const authUsers = await service.list({
provider_id: "manual",
provider: "manual",
})
const serialized = JSON.parse(JSON.stringify(authUsers))
@@ -103,7 +101,7 @@ describe("AuthUser Service", () => {
it("should listAndCount authUsers by provider_id", async () => {
const [authUsers, count] = await service.listAndCount({
provider_id: "manual",
provider: "manual",
})
expect(count).toEqual(2)
@@ -227,7 +225,7 @@ describe("AuthUser Service", () => {
await service.create([
{
id: "test",
provider_id: "manual",
provider: "manual",
entity_id: "test",
scope: "store",
},