Skip to content

chore(prerelease): prepare and publish release candidate packages#38

Merged
halvaradop merged 25 commits intomasterfrom
chore/prepare-packages
Dec 18, 2025
Merged

chore(prerelease): prepare and publish release candidate packages#38
halvaradop merged 25 commits intomasterfrom
chore/prepare-packages

Conversation

@halvaradop
Copy link
Copy Markdown
Member

@halvaradop halvaradop commented Dec 17, 2025

Description

This pull request prepares the @aura-stack/auth and @aura-stack/jose packages for their first stable release by publishing release candidate (RC) versions and tagging them with rc on npm.

Note

The @aura-stack/auth package encountered issues related to module augmentation. These issues occurred because the interfaces intended for augmentation were composed using utility types such as Pick and Omit, which cannot be safely augmented and led to unexpected type behavior once the package was published to npm.
Additionally, other issues became visible only after publishing the packages, which explains why more release candidate versions were published than originally expected.

In parallel, the package.json files for both packages were updated to improve metadata and publishing configuration, including:

  • Adding homepage and repository links
  • Defining publishConfig
  • Refining other package configuration options to better support publishing and discoverability

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Dec 17, 2025

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

Project Deployment Review Updated (UTC)
auth Ready Ready Preview, Comment Dec 18, 2025 4:24pm
auth-nextjs-demo Ready Ready Preview, Comment Dec 18, 2025 4:24pm

@halvaradop
Copy link
Copy Markdown
Member Author

After debugging the unexpected behavior in @aura-stack/auth and @aura-stack/jose, I discovered that the issue stems from how the secret key is provided to the createAuth function. While Aura Auth defaults to using the AURA_AUTH_SECRET environment variable, this value is inaccessible to the client-side instance of the auth consumer; therefore, the variable must be prefixed with NEXT_PUBLIC_ to be properly bundled. To prevent similar confusion in the future, we should implement more descriptive error messages to clarify when a required secret is missing or inaccessible on the client.

@halvaradop
Copy link
Copy Markdown
Member Author

halvaradop commented Dec 18, 2025

The error was caused by Turborepo not inferring the environment variables configured in the Vercel dashboard; this occurred because these variables must be explicitly added as inputs in the turbo.json configuration file to be recognized during the build process. 5f6581d

@halvaradop halvaradop merged commit 768a3e3 into master Dec 18, 2025
3 checks passed
@halvaradop halvaradop deleted the chore/prepare-packages branch December 18, 2025 16:28
@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