Skip to content

Commit c304228

Browse files
committed
chore: bump versions to 0.3.1 and export additional types from @mayrlabs/auth-nextjs
1 parent 3940552 commit c304228

7 files changed

Lines changed: 24 additions & 4 deletions

File tree

packages/auth-nextjs/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# @mayrlabs/auth-nextjs
22

3+
## 0.3.1
4+
5+
Exported more types from the base `@mayrlabs/auth` package in an attempt to resolve any type on issuer and client setup.
6+
37
## 0.3.0
48

59
### Major Changes
@@ -43,6 +47,7 @@
4347
- d5d0398: The first release of `@mayrlabs/auth-nextjs`!
4448

4549
Provides seamless Next.js App Router integrations for the core `@mayrlabs/auth` ecosystem, including out-of-the-box components:
50+
4651
- `createNextAuth`: Contextual setup utility to establish universal authentication context.
4752
- `AuthProvider` & `AuthClientProvider`: React Server and Client providers for session hydration.
4853
- `getUserOrThrow`, `getUserOrRedirect`, and `authProxy`: Secure server-side authorization blocks for protecting pages and actions.

packages/auth-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mayrlabs/auth-nextjs",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "The official Next.js App Router integration for @mayrlabs/auth featuring Middleware guards, Server Actions utilities, and React Context bindings.",
55
"keywords": [
66
"nextjs",

packages/auth-nextjs/src/client/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function createNextClientAuth(options: NextAuthOptions = {}) {
2828
);
2929
}
3030

31-
const setup = new ClientAuthSetup({
31+
const setup: ClientAuthSetup = new ClientAuthSetup({
3232
publicKey,
3333
clientId,
3434
clientSecret,

packages/auth-nextjs/src/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
export {
2+
ClientAuthSetup,
3+
ClientConfig,
4+
ClientConfigInput,
5+
IssuerAuthSetup,
6+
IssuerConfig,
7+
IssuerConfigInput,
28
MayRLabsAuthError,
39
type MayRLabsAuthErrorPayload,
410
type MayRLabsAuthMachinePayload,

packages/auth-nextjs/src/issuer/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export function createNextIssuerAuth(options: NextIssuerAuthOptions = {}) {
2525
);
2626
}
2727

28-
const setup = new IssuerAuthSetup({ privateKey, publicKey, issuer });
28+
const setup: IssuerAuthSetup = new IssuerAuthSetup({
29+
privateKey,
30+
publicKey,
31+
issuer,
32+
});
2933

3034
/**
3135
* Gets the current user from the session cookie.

packages/auth/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# @mayrlabs/auth
22

3+
## 0.3.1
4+
5+
Minor bump to ensure version sync
6+
37
## 0.3.0
48

59
### Major Changes
@@ -42,6 +46,7 @@
4246
- 12d4196: The initial major release of `@mayrlabs/auth` as a framework-agnostic core library!
4347

4448
#### ✨ Core Features
49+
4550
- **Framework Agnostic Identity Management**: The `AuthSetup` class provides universal JS support for authentication. Native methods `verifyAuthToken` and `verifyErrorToken` make SSO validation seamless across node-compatible runtimes.
4651
- **Secure M2M Edge**: Provides `sendRequest` parameterized natively to use `FormData` encryption payloads when communicating with the Account Center.
4752
- **Strictly Typed Ecosystem**: Nested envelope validation checks outer network operations and inner app logic automatically. Exports detailed structures such as `M2MPayload`, `M2MResponse`, and `DecryptedM2MResponse<T>` for confident TypeScript runtime verification.

packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mayrlabs/auth",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A strictly typed, universal JWT and M2M authentication core library powering the MayR Labs ecosystem.",
55
"keywords": [
66
"auth",

0 commit comments

Comments
 (0)