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

feat: add parameter guards #115

Merged
merged 3 commits into from
Dec 10, 2024
Merged

feat: add parameter guards #115

merged 3 commits into from
Dec 10, 2024

Conversation

ctran88
Copy link
Contributor

@ctran88 ctran88 commented Dec 9, 2024

What's New?

  • Adds parameter guards for all Auth and User operations to simplify input checks that can be done before making a network request
  • Guards for the deprecated and new create magic link method are not added because the type safety prohibits incorrect values

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 force-pushed the PSG-5517-parameter-guards branch from 3e03f1e to a4c1b24 Compare December 9, 2024 20:41
@ctran88 ctran88 marked this pull request as ready for review December 9, 2024 20:43
@ctran88 ctran88 requested a review from a team December 9, 2024 21:44
Copy link

@ctran88 ctran88 merged commit e61d115 into main Dec 10, 2024
6 checks passed
@ctran88 ctran88 deleted the PSG-5517-parameter-guards branch December 10, 2024 23:31
This was referenced Dec 10, 2024
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