@s8lab/sso-client 1.1.5 → 1.1.7

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.
@@ -28,6 +28,7 @@ export interface AuthConfigContextValue {
28
28
  config: AuthConfig | null;
29
29
  configLoading: boolean;
30
30
  apiUrl: string;
31
+ rootPath: string;
31
32
  }
32
33
  export interface User {
33
34
  id: string;
@@ -99,6 +100,11 @@ export interface AuthProviderProps {
99
100
  * Should forward credentials (cookies) to the server.
100
101
  */
101
102
  fetcher?: <T>(url: string, init: RequestInit) => Promise<T>;
103
+ /**
104
+ * Path to redirect authenticated users to when they land on a guest route
105
+ * wrapped with <GuestRoute>. Defaults to "/".
106
+ */
107
+ rootPath?: string;
102
108
  }
103
109
  export interface LoginFormProps {
104
110
  /** Extra CSS classes applied to the outer Card */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s8lab/sso-client",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "SSO authentication components for React — Login, Signup, ForgotPassword, Logout, Profile with Google reCAPTCHA and shadcn UI",
5
5
  "author": "S8 Lab",
6
6
  "license": "MIT",