Skip to content

Conversation

@milosz-w-rigby
Copy link
Collaborator

Added a new custom provider extending the default medusa emailpass provider with some more functionality like:
name and last_name verification, email matches for same email but with lowercase and optionally suffixed emails.
Also some more extensive errors when it comes to validation and registering on the same email.

@milosz-w-rigby milosz-w-rigby added the enhancement New feature or request label Nov 19, 2025
@railway-app
Copy link

railway-app bot commented Nov 19, 2025

🚅 Deployed to the mercur-pr-506 environment in [DEV & QA] mercur-internal

Service Status Web Updated (UTC)
mercur ✅ Success (View Logs) Web Nov 19, 2025 at 8:36 am

const providerIdentity = copy.provider_identities?.find(
(pi) => pi.provider === this.provider
)!
delete providerIdentity.provider_metadata?.password
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we are deleting password?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably to ensure that it's not returned, even though only the copy is returned not the original object.

this part wasn't modified from the original: https://github.com/medusajs/medusa/blob/beb91d88a2f224075e4fcf35a0ee9483b3124504/packages/modules/providers/auth-emailpass/src/services/emailpass.ts#L136

@tomaszdworniczak tomaszdworniczak changed the base branch from testing to development December 12, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants