Skip to content

chore(core): clean up types#50

Merged
halvaradop merged 6 commits intomasterfrom
chore/clean-up-types
Jan 8, 2026
Merged

chore(core): clean up types#50
halvaradop merged 6 commits intomasterfrom
chore/clean-up-types

Conversation

@halvaradop
Copy link
Copy Markdown
Member

@halvaradop halvaradop commented Jan 6, 2026

Description

This pull request cleans up and standardizes the types in the @aura-stack/auth main package to provide clearer, more consistent, and fully type-safe exported and internal types. The changes include renames, structural improvements, and several type refinements aimed at improving developer experience and maintainability.

Key Changes

  • Added JWTPayloadWithToken type.
  • Added null support for User properties (excluding sub, which remains mandatory for all user profiles).
  • Improved type safety for the responseType option when adding a new OAuth provider via the OAuthProviderConfig type.
  • Updated AuthRuntimeConfig (it duplicated the responsibility of RouterGlobalContext).
  • Added OAuthEnv type.
  • Added APIErrorMap type.
  • Updated the createSessionCookie function parameter order: the jose instance is now the first argument, followed by userinfo.
  • Updated declarative re-exports of OAuth configurations and types to re-export all OAuth-related content. OAuth provider-specific exports are now accessible via @aura-stack/auth/oauth/:provider.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
auth-nextjs-demo Ready Ready Preview, Comment Jan 7, 2026 4:12am
1 Skipped Deployment
Project Deployment Review Updated (UTC)
auth Skipped Skipped Jan 7, 2026 4:12am

@vercel vercel Bot temporarily deployed to Preview – auth January 7, 2026 04:12 Inactive
@halvaradop halvaradop merged commit 22c3894 into master Jan 8, 2026
6 checks passed
@halvaradop halvaradop deleted the chore/clean-up-types branch January 8, 2026 22:16
@halvaradop halvaradop added the chore Maintenance tasks, tooling, dependency updates, or housekeeping changes. label Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks, tooling, dependency updates, or housekeeping changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant