Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: createMagicLink now correctly transforms the "userId" parameter #205

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

ctran88
Copy link
Contributor

@ctran88 ctran88 commented Dec 14, 2024

What's New?

This was a bug in v2.12.0 where the argument name for MagicLinkWithUserArgs was userId, which was being passed directly to our api, which wanted user_id instead.

Screenshots (if appropriate):

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have manually tested my code thoroughly
  • I have added/updated inline documentation for public facing interfaces if relevant
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing integration and unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Additional context

@ctran88 ctran88 requested review from flanagankp and a team and removed request for flanagankp December 14, 2024 00:38
@ctran88 ctran88 force-pushed the PSG-5578-fix-create-magic-link-user-id-param branch from 5e7ef8f to 8064b24 Compare December 14, 2024 00:40
@ctran88 ctran88 force-pushed the PSG-5578-fix-create-magic-link-user-id-param branch from 8064b24 to 4553f16 Compare December 14, 2024 00:44
@@ -96,11 +98,13 @@ export class Auth extends PassageBase {
appId: this.config.appId,
createMagicLinkRequest: {
...args,
// eslint-disable-next-line camelcase
user_id: userId,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was being passed as part of the ...args input, but the codegen wants this instead

@ctran88 ctran88 merged commit a07c50f into main Dec 16, 2024
6 checks passed
@ctran88 ctran88 deleted the PSG-5578-fix-create-magic-link-user-id-param branch December 16, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants