@placeos/ts-client 4.7.4 → 4.7.6
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/dist/auth/functions.d.ts +1 -0
- package/dist/auth/interfaces.d.ts +2 -0
- package/dist/auth.d.ts +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1155 -1132
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/auth/functions.ts +9 -2
- package/src/auth/interfaces.ts +2 -0
- package/src/auth.ts +1 -0
package/dist/auth/functions.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare function isFixedDevice(): boolean;
|
|
|
51
51
|
export declare function checkStoreForAuthParam(name: string, store?: boolean): string;
|
|
52
52
|
/** Initialise authentication for the http and realtime APIs */
|
|
53
53
|
export declare function setup(options: PlaceAuthOptions): Promise<void>;
|
|
54
|
+
export declare function setStorage(type: 'session' | 'local'): void;
|
|
54
55
|
/**
|
|
55
56
|
* @private
|
|
56
57
|
*/
|
|
@@ -81,6 +81,8 @@ export interface PlaceAuthOptions {
|
|
|
81
81
|
version?: 'ACA Engine' | 'PlaceOS';
|
|
82
82
|
/** Whether X-API-KEY values should be ignored */
|
|
83
83
|
ignore_api_key?: boolean;
|
|
84
|
+
/** Delay authentication by X milliseconds */
|
|
85
|
+
delay?: number;
|
|
84
86
|
}
|
|
85
87
|
export interface PlaceTokenResponse {
|
|
86
88
|
/** New access token */
|
package/dist/auth.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { apiEndpoint, apiKey, authorise, authority, cleanupAuth, clientId, hasToken, host, httpRoute, invalidateToken, isFixedDevice, isMock, isOnline, isSecure, isTrusted, listenForToken, logout, onlineState, redirectUri, refreshAuthority, refreshToken, setAPI_Key, setToken, setup, token, } from './auth/functions';
|
|
1
|
+
export { apiEndpoint, apiKey, authorise, authority, cleanupAuth, clientId, hasToken, host, httpRoute, invalidateToken, isFixedDevice, isMock, isOnline, isSecure, isTrusted, listenForToken, logout, onlineState, redirectUri, refreshAuthority, refreshToken, setAPI_Key, setStorage, setToken, setup, token, } from './auth/functions';
|
|
2
2
|
export type { PlaceAuthOptions, PlaceAuthority, PlaceTokenResponse, } from './auth/interfaces';
|