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

Auth User Middleware #11

Merged
merged 21 commits into from
Oct 23, 2024
Merged

Auth User Middleware #11

merged 21 commits into from
Oct 23, 2024

Conversation

jpraissman
Copy link
Collaborator

@jpraissman jpraissman commented Oct 14, 2024

Description

Motivation and Context

Closes story

Screenshots (if appropriate):

Types of changes

  • 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)
  • CI/CD changes (changing github actions or deployment scripts)
  • Database migration
  • Environment variable change
  • New package(s)
  • New dependencies
  • Global style changes
  • Project configuration

Checklist:

  • I verified my changes work in the local environment
  • I verified my changes work in the preview environment
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

How has this been tested?

Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
good-dog-licensing-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 11:37pm

});

// Delete the records created for these tests
afterAll(async () => {
Copy link
Collaborator

@owens1127 owens1127 Oct 20, 2024

Choose a reason for hiding this comment

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

You can wrap this in a Promise.all() to parallelize the requests

import { authenticatedProcedureBuilder } from "../internal/init";

export const getAuthenticatedUserProcedure =
authenticatedProcedureBuilder.query(({ ctx }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's

  1. Verify that this endpoint doesn't return the user's password
  2. Write a test specifically for that behavior

@jpraissman jpraissman merged commit 67a3646 into main Oct 23, 2024
7 checks passed
@jpraissman jpraissman deleted the auth-user-middleware branch October 23, 2024 23:37
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