@lpshanley/oidc-start-react 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement, type ReactNode } from "react";
2
- import { type AuthSession, type SignInOptions, type SignOutOptions } from "@lpshanley/oidc-start-core/models";
2
+ import type { AuthSession, SignInOptions, SignOutOptions } from "@lpshanley/oidc-start-core/models";
3
3
  /** Supply the root loader's getAuth() result for SSR and client navigation. */
4
4
  export declare function AuthProvider({ auth, children }: {
5
5
  auth: AuthSession;
package/dist/client.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createContext, createElement, Fragment, useContext } from "react";
2
2
  import { useServerFn } from "@tanstack/react-start";
3
- import { hasRole } from "@lpshanley/oidc-start-core/models";
3
+ import { hasRole } from "@lpshanley/oidc-start-core/helpers";
4
4
  import { getSignInUrl, signOut } from "./functions.js";
5
5
  const AuthContext = createContext(undefined);
6
6
  /** Supply the root loader's getAuth() result for SSR and client navigation. */
package/dist/functions.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { createServerFn } from "@tanstack/react-start";
2
2
  import { redirect } from "@tanstack/react-router";
3
3
  import { z } from "zod";
4
- import { sanitizeReturnPath, signInOptionsSchema, signOutOptionsSchema } from "@lpshanley/oidc-start-core/models";
4
+ import { sanitizeReturnPath } from "@lpshanley/oidc-start-core/helpers";
5
+ import { signInOptionsSchema, signOutOptionsSchema } from "@lpshanley/oidc-start-core/models";
5
6
  // Server functions after WorkOS's server-functions.ts; bodies load lazily so
6
7
  // server code stays out of the client bundle.
7
8
  /** The signed-in user, or null. Never returns tokens. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lpshanley/oidc-start-react",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,7 @@
40
40
  "node": ">=22.12.0"
41
41
  },
42
42
  "dependencies": {
43
- "@lpshanley/oidc-start-core": "0.5.0",
43
+ "@lpshanley/oidc-start-core": "0.6.0",
44
44
  "zod": "4.6.7"
45
45
  },
46
46
  "devDependencies": {