I have a question about setting up a custom userService factory. #12961
Unanswered
jungsikjeong
asked this question in
Q&A
Replies: 1 comment
-
|
Hey there, Medusa expects you to export a module definition in import UserService from "./service"
import { Module } from "@medusajs/framework/utils"
export const USER_MODULE = "userService"
export default Module(USER_MODULE, {
service: UserService,
})Where did you find the syntax you used above? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, may the god of coding be with anyone who takes the time to answer my question, even a little.
I integrated my custom authentication module called user-service into Medusa using an MSA (microservices architecture) structure.
And here’s what I did:
Then, I registered it in medusa-config.js.
Isn't this how you're supposed to register it?
An error occurs.
hellp me plz
Beta Was this translation helpful? Give feedback.
All reactions