@kivacore/signin 0.20.0 → 0.21.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kivacore/signin",
3
- "version": "0.20.0",
4
- "description": "Authentication provider for Docyrus apps (React, Vue, React Native, Electron, Next.js SSR)",
3
+ "version": "0.21.1",
4
+ "description": "Authentication provider for Kiva apps (React, Vue, React Native, Electron, Next.js SSR)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -35,11 +35,11 @@
35
35
  "files": [
36
36
  "dist"
37
37
  ],
38
- "author": "Docyrus",
38
+ "author": "Kiva",
39
39
  "license": "MIT",
40
40
  "repository": {
41
41
  "type": "git",
42
- "url": "https://github.com/Docyrus/docyrus-devkit.git",
42
+ "url": "https://github.com/Kivacore/kiva-devkit.git",
43
43
  "directory": "packages/signin"
44
44
  },
45
45
  "devDependencies": {
@@ -1,32 +0,0 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import { D as DocyrusAuthConfig, g as DocyrusAuthContextValue } from './types-DmIgZa_v.js';
4
- import { RestApiClient } from '@kivacore/api-client';
5
-
6
- interface DocyrusAuthProviderProps extends DocyrusAuthConfig {
7
- children: ReactNode;
8
- /** Render a custom screen for a blocking auth error. */
9
- renderAuthError?: (error: Error) => ReactNode;
10
- }
11
- declare function DocyrusAuthProvider({ children, renderAuthError, ...config }: DocyrusAuthProviderProps): react.JSX.Element;
12
-
13
- declare const DocyrusAuthContext: react.Context<DocyrusAuthContextValue | null>;
14
-
15
- /**
16
- * Hook to access Docyrus auth state.
17
- * Must be used within a <DocyrusAuthProvider>.
18
- *
19
- * Returns: { status, mode, tokens, signIn, signInWithTokens, signOut, client, error }
20
- */
21
- declare function useDocyrusAuth(): DocyrusAuthContextValue;
22
-
23
- /**
24
- * Hook to get the pre-configured RestApiClient.
25
- * Returns null when not authenticated.
26
- *
27
- * Throws if used outside DocyrusAuthProvider.
28
- */
29
- declare function useDocyrusClient(): RestApiClient | null;
30
-
31
- export { DocyrusAuthContext as D, DocyrusAuthProvider as a, useDocyrusClient as c, useDocyrusAuth as u };
32
- export type { DocyrusAuthProviderProps as b };