@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 +4 -0
- package/dist/client/createAuthClient.d.ts +1 -1
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +412 -380
- package/dist/client/index.js.map +6 -5
- package/dist/client/mobile.d.ts +1 -0
- package/dist/client/mobile.js +601 -0
- package/dist/client/mobile.js.map +11 -0
- package/dist/client/runtimeTransport.d.ts +3 -0
- package/package.json +10 -2
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;
|
package/dist/client/index.d.ts
CHANGED