@@ -1255,52 +1255,6 @@ declare class ClientResponseError extends Error {
1255
1255
*/
1256
1256
toJSON ( ) : this;
1257
1257
}
1258
- /**
1259
- * The default token store for browsers with auto fallback
1260
- * to runtime/memory if local storage is undefined (eg. in node env).
1261
- */
1262
- declare class LocalAuthStore extends BaseAuthStore {
1263
- private storageFallback ;
1264
- private storageKey ;
1265
- constructor ( storageKey ?: string ) ;
1266
- /**
1267
- * @inheritdoc
1268
- */
1269
- get token ( ) : string ;
1270
- /**
1271
- * @inheritdoc
1272
- */
1273
- get model ( ) : AuthModel ;
1274
- /**
1275
- * @inheritdoc
1276
- */
1277
- save ( token : string , model ?: AuthModel ) : void ;
1278
- /**
1279
- * @inheritdoc
1280
- */
1281
- clear ( ) : void ;
1282
- // ---------------------------------------------------------------
1283
- // Internal helpers:
1284
- // ---------------------------------------------------------------
1285
- /**
1286
- * Retrieves `key` from the browser's local storage
1287
- * (or runtime/memory if local storage is undefined).
1288
- */
1289
- private _storageGet ;
1290
- /**
1291
- * Stores a new data in the browser's local storage
1292
- * (or runtime/memory if local storage is undefined).
1293
- */
1294
- private _storageSet ;
1295
- /**
1296
- * Removes `key` from the browser's local storage and the runtime/memory.
1297
- */
1298
- private _storageRemove ;
1299
- /**
1300
- * Updates the current store state on localStorage change.
1301
- */
1302
- private _bindStorageEvent ;
1303
- }
1304
1258
type AsyncSaveFunc = ( serializedPayload : string ) => Promise < void > ;
1305
1259
type AsyncClearFunc = ( ) => Promise < void > ;
1306
1260
/**
@@ -1359,6 +1313,52 @@ declare class AsyncAuthStore extends BaseAuthStore {
1359
1313
*/
1360
1314
private _dequeue ;
1361
1315
}
1316
+ /**
1317
+ * The default token store for browsers with auto fallback
1318
+ * to runtime/memory if local storage is undefined (eg. in node env).
1319
+ */
1320
+ declare class LocalAuthStore extends BaseAuthStore {
1321
+ private storageFallback ;
1322
+ private storageKey ;
1323
+ constructor ( storageKey ?: string ) ;
1324
+ /**
1325
+ * @inheritdoc
1326
+ */
1327
+ get token ( ) : string ;
1328
+ /**
1329
+ * @inheritdoc
1330
+ */
1331
+ get model ( ) : AuthModel ;
1332
+ /**
1333
+ * @inheritdoc
1334
+ */
1335
+ save ( token : string , model ?: AuthModel ) : void ;
1336
+ /**
1337
+ * @inheritdoc
1338
+ */
1339
+ clear ( ) : void ;
1340
+ // ---------------------------------------------------------------
1341
+ // Internal helpers:
1342
+ // ---------------------------------------------------------------
1343
+ /**
1344
+ * Retrieves `key` from the browser's local storage
1345
+ * (or runtime/memory if local storage is undefined).
1346
+ */
1347
+ private _storageGet ;
1348
+ /**
1349
+ * Stores a new data in the browser's local storage
1350
+ * (or runtime/memory if local storage is undefined).
1351
+ */
1352
+ private _storageSet ;
1353
+ /**
1354
+ * Removes `key` from the browser's local storage and the runtime/memory.
1355
+ */
1356
+ private _storageRemove ;
1357
+ /**
1358
+ * Updates the current store state on localStorage change.
1359
+ */
1360
+ private _bindStorageEvent ;
1361
+ }
1362
1362
/**
1363
1363
* Returns JWT token's payload data.
1364
1364
*/
@@ -1374,4 +1374,4 @@ declare function getTokenPayload(token: string): {
1374
1374
* @param [expirationThreshold] Time in seconds that will be subtracted from the token `exp` property.
1375
1375
*/
1376
1376
declare function isTokenExpired ( token : string , expirationThreshold ?: number ) : boolean ;
1377
- export { Client as default , BeforeSendResult , ClientResponseError , ListResult , BaseModel , AdminModel , SchemaField , CollectionModel , ExternalAuthModel , LogModel , RecordModel , SendOptions , CommonOptions , ListOptions , FullListOptions , RecordOptions , RecordListOptions , RecordFullListOptions , LogStatsOptions , FileOptions , AuthOptions , normalizeUnknownQueryParams , CrudService , AdminAuthResponse , AdminService , CollectionService , HourlyStats , LogService , UnsubscribeFunc , RealtimeService , RecordAuthResponse , AuthProviderInfo , AuthMethodsList , RecordSubscription , OAuth2UrlCallback , OAuth2AuthConfig , RecordService , AuthModel , OnStoreChangeFunc , BaseAuthStore , LocalAuthStore , AsyncSaveFunc , AsyncClearFunc , AsyncAuthStore , getTokenPayload , isTokenExpired , ParseOptions , cookieParse , SerializeOptions , cookieSerialize } ;
1377
+ export { Client as default , BeforeSendResult , ClientResponseError , AdminAuthResponse , AdminService , CollectionService , HealthCheckResponse , HealthService , HourlyStats , LogService , UnsubscribeFunc , RealtimeService , RecordAuthResponse , AuthProviderInfo , AuthMethodsList , RecordSubscription , OAuth2UrlCallback , OAuth2AuthConfig , RecordService , CrudService , ListResult , BaseModel , AdminModel , SchemaField , CollectionModel , ExternalAuthModel , LogModel , RecordModel , SendOptions , CommonOptions , ListOptions , FullListOptions , RecordOptions , RecordListOptions , RecordFullListOptions , LogStatsOptions , FileOptions , AuthOptions , normalizeUnknownQueryParams , AsyncSaveFunc , AsyncClearFunc , AsyncAuthStore , AuthModel , OnStoreChangeFunc , BaseAuthStore , LocalAuthStore , ParseOptions , cookieParse , SerializeOptions , cookieSerialize , getTokenPayload , isTokenExpired } ;
0 commit comments