@baukit/auth-native 0.1.0 → 0.1.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/README.md +12 -0
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -38,3 +38,15 @@ Universal Expo products can pass a `storage` port to
|
|
|
38
38
|
`createExpoOidcEnvironment` or `createExpoOidcClient`. This supports a web
|
|
39
39
|
localStorage adapter or a product-owned compatibility/migration wrapper while
|
|
40
40
|
retaining the standard Expo browser flow.
|
|
41
|
+
|
|
42
|
+
## Boundaries
|
|
43
|
+
|
|
44
|
+
The package owns the native OIDC flow, session storage, and refresh. It ships no screens, no
|
|
45
|
+
navigation, and no authorization logic; what a signed-in user may do is decided by the product and
|
|
46
|
+
enforced by the server.
|
|
47
|
+
|
|
48
|
+
The core has no React, router, or product UI dependency, and the Expo entry point is a separate
|
|
49
|
+
subpath. Construct `NativeOidcClient` with your own `SecureStoragePort`, `BrowserFlowPort`, `fetch`,
|
|
50
|
+
and clock when you are on another native stack or want a deterministic test.
|
|
51
|
+
|
|
52
|
+
`@baukit/auth-web` is the same contract for browsers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baukit/auth-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Provider-neutral native OIDC authorization-code client with S256 PKCE, secure-storage and browser-flow ports, and refresh rotation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Patrick Koss",
|
|
@@ -36,6 +36,13 @@
|
|
|
36
36
|
"README.md",
|
|
37
37
|
"LICENSE"
|
|
38
38
|
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc -p tsconfig.json",
|
|
41
|
+
"prepare": "pnpm run build",
|
|
42
|
+
"test": "vitest run --config ../../vitest.config.ts",
|
|
43
|
+
"lint": "eslint src --max-warnings=0",
|
|
44
|
+
"format:check": "prettier --check src package.json tsconfig.json"
|
|
45
|
+
},
|
|
39
46
|
"devDependencies": {
|
|
40
47
|
"expo-auth-session": "57.0.6",
|
|
41
48
|
"expo-secure-store": "57.0.1",
|
|
@@ -46,11 +53,5 @@
|
|
|
46
53
|
"expo-auth-session": "^57.0.6",
|
|
47
54
|
"expo-secure-store": "^57.0.1",
|
|
48
55
|
"expo-web-browser": "^57.0.2"
|
|
49
|
-
},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "tsc -p tsconfig.json",
|
|
52
|
-
"test": "vitest run --config ../../vitest.config.ts",
|
|
53
|
-
"lint": "eslint src --max-warnings=0",
|
|
54
|
-
"format:check": "prettier --check src package.json tsconfig.json"
|
|
55
56
|
}
|
|
56
|
-
}
|
|
57
|
+
}
|