chore: Remove @medusajs/medusa usage + local types from dashboard (#8883)
Closes CC-403
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { HttpTypes } from "@medusajs/types"
|
||||
import { Client } from "../client"
|
||||
import { Config } from "../types"
|
||||
|
||||
@@ -13,7 +14,7 @@ export class Auth {
|
||||
register = async (
|
||||
actor: "customer" | "user",
|
||||
method: "emailpass",
|
||||
payload: { email: string; password: string }
|
||||
payload: HttpTypes.AdminSignUpWithEmailPassword
|
||||
) => {
|
||||
const { token } = await this.client.fetch<{ token: string }>(
|
||||
`/auth/${actor}/${method}/register`,
|
||||
@@ -31,7 +32,7 @@ export class Auth {
|
||||
login = async (
|
||||
actor: "customer" | "user",
|
||||
method: "emailpass",
|
||||
payload: { email: string; password: string }
|
||||
payload: HttpTypes.AdminSignInWithEmailPassword
|
||||
) => {
|
||||
const { token } = await this.client.fetch<{ token: string }>(
|
||||
`/auth/${actor}/${method}`,
|
||||
|
||||
Reference in New Issue
Block a user