capacitor-oidc 0.0.1 → 0.0.2

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.
@@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
10
10
  spec.license = package['license']
11
11
  spec.homepage = package['homepage']
12
12
  spec.author = package['author']
13
- spec.source = { git: repository_url, tag: spec.version.to_s }
13
+ spec.source = { git: repository_url, tag: "v#{spec.version}" }
14
14
  spec.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
15
15
  spec.ios.deployment_target = '15.0'
16
16
  spec.dependency 'Capacitor', '>= 7.0'
package/README.md CHANGED
@@ -19,11 +19,6 @@ Capacitor-specific pieces:
19
19
  On iOS, authentication uses `ASWebAuthenticationSession`. On Android, it uses
20
20
  AndroidX Auth Tab with its Custom Tab fallback.
21
21
 
22
- > [!CAUTION]
23
- > This package is an alpha. The public API and stored-session format can still
24
- > change before v1. See [Security](SECURITY.md) and
25
- > [current test coverage](docs/TESTING.md) before making a production decision.
26
-
27
22
  ## Requirements
28
23
 
29
24
  - Capacitor 7 or 8
@@ -89,26 +84,6 @@ the normal `UserManager` from `oidc-client-ts` and select the implementation wit
89
84
  - [Testing status](docs/TESTING.md)
90
85
  - [Security](SECURITY.md)
91
86
 
92
- ## Session renewal
93
-
94
- `automaticSilentRenew` uses the foreground expiry timer from `oidc-client-ts`.
95
- Native silent renewal uses the refresh token and never falls back to an iframe.
96
- Concurrent renewal triggers share one request. When the app returns to the
97
- foreground, the manager checks whether the current user needs renewal.
98
-
99
- The operating system can suspend or terminate the app, so the package does not
100
- promise exact background refresh timing.
101
-
102
- ## Networking
103
-
104
- Discovery, token exchange, refresh, UserInfo, and revocation are performed by
105
- `oidc-client-ts` through the unmodified WebView `fetch`. The corresponding
106
- provider endpoints must allow the application's configured Capacitor origin
107
- through CORS.
108
-
109
- The package does not patch `fetch`, add native OIDC networking, accept client
110
- secrets, or render authentication inside a WebView.
111
-
112
87
  ## Development
113
88
 
114
89
  ```sh
package/docs/TESTING.md CHANGED
@@ -20,6 +20,7 @@ CI currently runs:
20
20
  - TypeScript linting, Vitest, package builds, and `npm pack --dry-run`;
21
21
  - iOS XCTest in an iOS 18.5 simulator;
22
22
  - Android unit tests, assembly, and lint with SDK 36;
23
+ - packaged iOS and Android consumer builds with Capacitor 7 and 8;
23
24
  - cross-platform decoding of the versioned `StoredSessionV1` fixture.
24
25
 
25
26
  ## Current manual validation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-oidc",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A minimal Capacitor adapter for standards-based OpenID Connect authentication.",
5
5
  "main": "dist/plugin.cjs",
6
6
  "module": "dist/esm/index.js",
@@ -8,7 +8,8 @@
8
8
  "files": [
9
9
  "android/src/main/",
10
10
  "android/build.gradle",
11
- "contracts/",
11
+ "contracts/fixtures/stored-session-v1.json",
12
+ "contracts/stored-session-v1.schema.json",
12
13
  "dist/",
13
14
  "docs/",
14
15
  "ios/Sources",