Package.json file
{
"name": "123",
"version": "0.0.1",
"description": "A starter for Medusa projects.",
"author": "Medusa (https://medusajs.com)",
"license": "MIT",
"keywords": [
"sqlite",
"postgres",
"typescript",
"ecommerce",
"headless",
"medusa"
],
"scripts": {
"build": "medusa build",
"start": "medusa start",
"dev": "medusa develop",
"migrate": "medusa db:migrate",
},
"dependencies": {
"@datadog/datadog-api-client": "^1.34.1",
"@medusajs/admin-sdk": "2.10.3",
"@medusajs/cli": "2.10.3",
"@medusajs/framework": "2.10.3",
"@medusajs/medusa": "2.10.3",
"@mikro-orm/core": "6.4.3",
"@mikro-orm/knex": "6.4.3",
"@mikro-orm/migrations": "6.4.3",
"@mikro-orm/postgresql": "6.4.3",
"@opentelemetry/exporter-trace-otlp-http": "^0.201.1",
"@sanity/client": "^7.0.0",
"@types/fhir": "^0.0.41",
"awilix": "^8.0.1",
"axios": "^1.8.4",
"jsonapi-serializer": "^3.6.9",
"moment": "^2.30.1",
"pg": "^8.13.0",
"uuid": "^11.1.0"
},
"devDependencies": {
"@eslint/js": "^9.15.0",
"@medusajs/test-utils": "2.10.3",
"@mikro-orm/cli": "6.4.3",
"@opentelemetry/sdk-node": "^0.200.0",
"@swc/core": "1.5.7",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
"@types/jsonapi-serializer": "^3.6.8",
"@types/node": "^20.0.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.25",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"prettier": "^3.6.2",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript-eslint": "^8.15.0",
"vite": "^5.2.11",
"yalc": "^1.0.0-pre.53"
},
"engines": {
"node": ">=20"
}
}
Node.js version
Database and its version
Operating system name and version
Browser name
No response
What happended?
Because of auth customization we need to update emails for all the customers. Customers entities were updated fine, but when we tried update authorization module with authModuleService.updateProvider it appeared that this method allows only password update, but not email.
From I see in the source code, it's just how it's implemented, but docs say that email also can be updated: https://docs.medusajs.com/resources/references/auth/updateProvider
If it's not a bug but expected behavior, it's worth to update the docs. However I'd curious about the alternative options how we can change customer's email.
Thank you!
Expected behavior
authModuleService.updateProvider allows customer email update
Actual behavior
authModuleService.updateProvider doesn't allow customer email update
Link to reproduction repo
Package.json file
{ "name": "123", "version": "0.0.1", "description": "A starter for Medusa projects.", "author": "Medusa (https://medusajs.com)", "license": "MIT", "keywords": [ "sqlite", "postgres", "typescript", "ecommerce", "headless", "medusa" ], "scripts": { "build": "medusa build", "start": "medusa start", "dev": "medusa develop", "migrate": "medusa db:migrate", }, "dependencies": { "@datadog/datadog-api-client": "^1.34.1", "@medusajs/admin-sdk": "2.10.3", "@medusajs/cli": "2.10.3", "@medusajs/framework": "2.10.3", "@medusajs/medusa": "2.10.3", "@mikro-orm/core": "6.4.3", "@mikro-orm/knex": "6.4.3", "@mikro-orm/migrations": "6.4.3", "@mikro-orm/postgresql": "6.4.3", "@opentelemetry/exporter-trace-otlp-http": "^0.201.1", "@sanity/client": "^7.0.0", "@types/fhir": "^0.0.41", "awilix": "^8.0.1", "axios": "^1.8.4", "jsonapi-serializer": "^3.6.9", "moment": "^2.30.1", "pg": "^8.13.0", "uuid": "^11.1.0" }, "devDependencies": { "@eslint/js": "^9.15.0", "@medusajs/test-utils": "2.10.3", "@mikro-orm/cli": "6.4.3", "@opentelemetry/sdk-node": "^0.200.0", "@swc/core": "1.5.7", "@swc/jest": "^0.2.36", "@types/jest": "^29.5.13", "@types/jsonapi-serializer": "^3.6.8", "@types/node": "^20.0.0", "@types/react": "^18.3.2", "@types/react-dom": "^18.2.25", "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.32.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-prettier": "^5.5.4", "jest": "^29.7.0", "prettier": "^3.6.2", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", "ts-node": "^10.9.2", "typescript": "^5.6.2", "typescript-eslint": "^8.15.0", "vite": "^5.2.11", "yalc": "^1.0.0-pre.53" }, "engines": { "node": ">=20" } }Node.js version
Database and its version
Operating system name and version
Browser name
No response
What happended?
Because of auth customization we need to update emails for all the customers. Customers entities were updated fine, but when we tried update authorization module with authModuleService.updateProvider it appeared that this method allows only password update, but not email.
From I see in the source code, it's just how it's implemented, but docs say that email also can be updated: https://docs.medusajs.com/resources/references/auth/updateProvider
If it's not a bug but expected behavior, it's worth to update the docs. However I'd curious about the alternative options how we can change customer's email.
Thank you!
Expected behavior
authModuleService.updateProvider allows customer email update
Actual behavior
authModuleService.updateProvider doesn't allow customer email update
Link to reproduction repo