@atlasauth/expo 0.3.0 → 0.4.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/CHANGELOG.md +8 -0
- package/dist/AtlasProvider.d.ts +3 -0
- package/dist/AtlasProvider.js +2 -1
- package/dist/AtlasProvider.js.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlasauth/expo changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 0.4.0 — 2026-10-26
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- `<AtlasProvider>` provides the bearer client it builds over the token cache to the policy hooks.
|
|
10
|
+
|
|
3
11
|
## 0.3.0 — 2026-10-24
|
|
4
12
|
Requires `@atlasauth/react-native` with policy acceptance (new dependency).
|
|
5
13
|
- **Policy acceptance** (terms of service, privacy, any policy the app defines). `<PolicyConsent>`, `<PolicyClickwrap>`,
|
package/dist/AtlasProvider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
+
import { type AttestationProvider } from '@atlasauth/js';
|
|
2
3
|
import { type AtlasProviderProps as ReactAtlasProviderProps } from '@atlasauth/react';
|
|
3
4
|
import { type TokenCache } from './token-cache';
|
|
4
5
|
/**
|
|
@@ -39,5 +40,7 @@ export interface AtlasProviderProps extends Omit<ReactAtlasProviderProps, 'fetch
|
|
|
39
40
|
tokenKey?: string;
|
|
40
41
|
/** Injectable for tests; defaults to the platform `fetch`. */
|
|
41
42
|
fetchImpl?: typeof fetch;
|
|
43
|
+
/** App Attest / Play Integrity provider, once the instance requires app attestation. Read once. */
|
|
44
|
+
attestation?: AttestationProvider;
|
|
42
45
|
}
|
|
43
46
|
export declare function AtlasProvider(props: AtlasProviderProps): ReactElement;
|
package/dist/AtlasProvider.js
CHANGED
|
@@ -8,7 +8,7 @@ const cache_fetch_1 = require("./cache-fetch");
|
|
|
8
8
|
const fapi_context_1 = require("./fapi-context");
|
|
9
9
|
const token_cache_1 = require("./token-cache");
|
|
10
10
|
function AtlasProvider(props) {
|
|
11
|
-
const { tokenCache, tokenKey = token_cache_1.DEFAULT_SESSION_KEY, fetchImpl, ...rest } = props;
|
|
11
|
+
const { tokenCache, tokenKey = token_cache_1.DEFAULT_SESSION_KEY, fetchImpl, attestation, ...rest } = props;
|
|
12
12
|
// Built exactly once — the initializer runs on first render only, so the cache
|
|
13
13
|
// (and the default in-memory one, when no adapter is passed) survives
|
|
14
14
|
// re-renders rather than being re-created and losing the session every render.
|
|
@@ -24,6 +24,7 @@ function AtlasProvider(props) {
|
|
|
24
24
|
baseUrl: (0, js_1.resolveFrontendApi)(rest.frontendApi, { component: '<AtlasProvider> (expo)', allowSameOrigin: false }),
|
|
25
25
|
fetchImpl: cacheFetch,
|
|
26
26
|
locale: rest.locale,
|
|
27
|
+
attestation,
|
|
27
28
|
}),
|
|
28
29
|
// Sign-out tombstones persist beside the token (there is no localStorage).
|
|
29
30
|
tombstoneStore: (0, token_cache_1.tombstoneStoreFor)(cache),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AtlasProvider.js","sourceRoot":"","sources":["../src/AtlasProvider.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"AtlasProvider.js","sourceRoot":"","sources":["../src/AtlasProvider.tsx"],"names":[],"mappings":";;AA0DA,sCA+BC;AAzFD,iCAAmE;AACnE,sCAAyF;AACzF,4CAG0B;AAC1B,+CAAiD;AACjD,iDAAiD;AACjD,+CAKuB;AA6CvB,SAAgB,aAAa,CAAC,KAAyB;IACrD,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAG,iCAAmB,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE9F,+EAA+E;IAC/E,sEAAsE;IACtE,+EAA+E;IAC/E,MA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
|
"dependencies": {
|
|
7
|
-
"@atlasauth/
|
|
8
|
-
"@atlasauth/react": "^0.
|
|
9
|
-
"@atlasauth/
|
|
7
|
+
"@atlasauth/js": "0.24.0",
|
|
8
|
+
"@atlasauth/react": "^0.21.0",
|
|
9
|
+
"@atlasauth/react-native": "^0.7.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"react": ">=18",
|
|
@@ -43,12 +43,13 @@
|
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist",
|
|
46
|
+
"!dist/*.tsbuildinfo",
|
|
46
47
|
"README.md",
|
|
47
48
|
"CHANGELOG.md"
|
|
48
49
|
],
|
|
49
50
|
"scripts": {
|
|
50
51
|
"build": "tsc -p tsconfig.build.json",
|
|
51
|
-
"typecheck": "
|
|
52
|
+
"typecheck": "tsgo -p tsconfig.json --noEmit --module preserve --moduleResolution bundler --incremental --tsBuildInfoFile node_modules/.cache/typecheck.tsbuildinfo",
|
|
52
53
|
"test": "vitest run"
|
|
53
54
|
}
|
|
54
55
|
}
|