Skip to content

Conversation

@zbeyens
Copy link
Member

@zbeyens zbeyens commented Oct 5, 2025

Summary

  • Add new getAuthUserIdentity helper that returns the full identity object with typed sessionId and userId fields
  • Refactor existing getAuthUserId to use getAuthUserIdentity internally
  • Improve type safety for sessionId parameter in getSession function
  • Remove unnecessary type assertions

Benefits

  • Provides access to the complete identity object when needed
  • Better type safety with properly typed session and user IDs
  • Maintains backward compatibility with existing getAuthUserId function
  • Cleaner code with reduced type assertions

Test plan

  • Verify getAuthUserId still returns the same value as before
  • Verify getAuthUserIdentity returns the full identity object with typed fields
  • Verify getSession works correctly with improved types

🤖 Generated with Claude Code

- Add new getAuthUserIdentity helper that returns full identity object with typed sessionId and userId
- Refactor existing getAuthUserId to use getAuthUserIdentity
- Improve type safety for sessionId parameter in getSession
- Remove unnecessary type assertions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@changeset-bot
Copy link

changeset-bot bot commented Oct 5, 2025

🦋 Changeset detected

Latest commit: 28facf6

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@zbeyens zbeyens merged commit ad6629a into main Oct 5, 2025
1 check passed
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