@absolutejs/auth 0.69.0 → 0.69.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.
package/README.md CHANGED
@@ -110,6 +110,10 @@ provider; the mobile build fails with an actionable error when it is absent.
110
110
  `mobile.fetchOptional()` is intended for application-shell/page-envelope
111
111
  requests: it sends a bearer token when a renewable session exists and otherwise
112
112
  performs a credential-free request so public pages still load before sign-in.
113
+ The generated native shell installs this transport through the package-owned
114
+ runtime registry, so existing `createAuthClient()` calls select it without
115
+ application changes. Explicit `transport` options always win, installation is
116
+ stacked and reversible, and web/server runtimes never install the registry.
113
117
 
114
118
  For WebSocket/Sync authentication, enable a ticket store on the provider. A
115
119
  valid audience-bound access token can then obtain a 30-second, hashed-at-rest,
@@ -66,7 +66,7 @@ export type AuthClientTransport = {
66
66
  user: unknown | null;
67
67
  }>;
68
68
  };
69
- export declare const createAuthClient: ({ baseUrl, credentials, fetch: fetchImpl, routes, transport }?: AuthClientConfig) => {
69
+ export declare const createAuthClient: ({ baseUrl, credentials, fetch: fetchImpl, routes, transport: configuredTransport }?: AuthClientConfig) => {
70
70
  emailVerification: {
71
71
  request: (body: {
72
72
  email: string;
@@ -1,5 +1,6 @@
1
1
  export * from './createAuthClient';
2
2
  export * from './sessionExpiry';
3
3
  export * from './mobile';
4
+ export * from './runtimeTransport';
4
5
  export * from '../redirect';
5
6
  export { runConditionalAuthentication, runPasskeyRegistration } from './passkeyHelpers';