import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({
baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
debug: import.meta.env.DEV,
auth: {
type: "session",
},
})
sdk.admin.plugin.list()
.then(({ plugins }) => {
console.log(plugins)
})
{
"plugins": [
{
"name": "<string>"
}
]
}
Retrieve the list of plugins installed in the Medusa application.
import Medusa from "@medusajs/js-sdk"
export const sdk = new Medusa({
baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
debug: import.meta.env.DEV,
auth: {
type: "session",
},
})
sdk.admin.plugin.list()
.then(({ plugins }) => {
console.log(plugins)
})
{
"plugins": [
{
"name": "<string>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The list of plugins.