@feedmepos/mf-common 0.0.9 → 0.0.10

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/app.d.ts CHANGED
@@ -1208,9 +1208,14 @@ export declare const useAuthStore: () => {
1208
1208
  phoneNumber?: string | null | undefined;
1209
1209
  } | null>;
1210
1210
  token: import("vue").Ref<string | null>;
1211
+ refreshToken: () => Promise<string>;
1211
1212
  signOut: () => void;
1212
1213
  prompt: (root?: HTMLElement | undefined) => void;
1213
1214
  onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
1215
+ getUserClaims: () => Promise<{
1216
+ exp: number;
1217
+ customClaims: Record<string, unknown>;
1218
+ }>;
1214
1219
  }, "currentUser" | "token">>>;
1215
1220
  $patch(partialState: import("pinia")._DeepPartial<{
1216
1221
  currentUser: {
@@ -1246,9 +1251,14 @@ export declare const useAuthStore: () => {
1246
1251
  phoneNumber?: string | null | undefined;
1247
1252
  } | null>;
1248
1253
  token: import("vue").Ref<string | null>;
1254
+ refreshToken: () => Promise<string>;
1249
1255
  signOut: () => void;
1250
1256
  prompt: (root?: HTMLElement | undefined) => void;
1251
1257
  onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
1258
+ getUserClaims: () => Promise<{
1259
+ exp: number;
1260
+ customClaims: Record<string, unknown>;
1261
+ }>;
1252
1262
  }, "currentUser" | "token">>>, options?: ({
1253
1263
  detached?: boolean | undefined;
1254
1264
  } & import("vue").WatchOptions<boolean>) | undefined): () => void;
@@ -1265,9 +1275,14 @@ export declare const useAuthStore: () => {
1265
1275
  phoneNumber?: string | null | undefined;
1266
1276
  } | null>;
1267
1277
  token: import("vue").Ref<string | null>;
1278
+ refreshToken: () => Promise<string>;
1268
1279
  signOut: () => void;
1269
1280
  prompt: (root?: HTMLElement | undefined) => void;
1270
1281
  onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
1282
+ getUserClaims: () => Promise<{
1283
+ exp: number;
1284
+ customClaims: Record<string, unknown>;
1285
+ }>;
1271
1286
  }, "currentUser" | "token">>, Pick<{
1272
1287
  config: (config: {
1273
1288
  clientId: string;
@@ -1281,9 +1296,14 @@ export declare const useAuthStore: () => {
1281
1296
  phoneNumber?: string | null | undefined;
1282
1297
  } | null>;
1283
1298
  token: import("vue").Ref<string | null>;
1299
+ refreshToken: () => Promise<string>;
1284
1300
  signOut: () => void;
1285
1301
  prompt: (root?: HTMLElement | undefined) => void;
1286
1302
  onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
1303
+ getUserClaims: () => Promise<{
1304
+ exp: number;
1305
+ customClaims: Record<string, unknown>;
1306
+ }>;
1287
1307
  }, never>, Pick<{
1288
1308
  config: (config: {
1289
1309
  clientId: string;
@@ -1297,10 +1317,15 @@ export declare const useAuthStore: () => {
1297
1317
  phoneNumber?: string | null | undefined;
1298
1318
  } | null>;
1299
1319
  token: import("vue").Ref<string | null>;
1320
+ refreshToken: () => Promise<string>;
1300
1321
  signOut: () => void;
1301
1322
  prompt: (root?: HTMLElement | undefined) => void;
1302
1323
  onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
1303
- }, "config" | "signOut" | "prompt" | "onAuthStateChanged">>, detached?: boolean | undefined): () => void;
1324
+ getUserClaims: () => Promise<{
1325
+ exp: number;
1326
+ customClaims: Record<string, unknown>;
1327
+ }>;
1328
+ }, "config" | "refreshToken" | "signOut" | "prompt" | "onAuthStateChanged" | "getUserClaims">>, detached?: boolean | undefined): () => void;
1304
1329
  $dispose(): void;
1305
1330
  $id: "auth";
1306
1331
  _customProperties: Set<string>;
@@ -1308,8 +1333,13 @@ export declare const useAuthStore: () => {
1308
1333
  clientId: string;
1309
1334
  customUrl?: string | undefined;
1310
1335
  }) => void;
1336
+ refreshToken: () => Promise<string>;
1311
1337
  signOut: () => void;
1312
1338
  prompt: (root?: HTMLElement | undefined) => void;
1313
1339
  onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
1340
+ getUserClaims: () => Promise<{
1341
+ exp: number;
1342
+ customClaims: Record<string, unknown>;
1343
+ }>;
1314
1344
  };
1315
1345
  export { default as FmNavBar } from './App.vue';