From 359f9d0014dc35e4b37506db99fd9848204b22a4 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 27 Jul 2023 18:17:09 +0200 Subject: [PATCH] fix(app-check): app-check is actually defined on server too --- src/app-check/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app-check/index.ts b/src/app-check/index.ts index 5e4dd90b..c50f6c08 100644 --- a/src/app-check/index.ts +++ b/src/app-check/index.ts @@ -67,21 +67,20 @@ export function VueFireAppCheck(options: VueFireAppCheckOptions) { } } +// TODO: remove this as getAppCheck() already kinda does this /** * To retrieve the current app check * @internal */ export const AppCheckMap = new WeakMap() -// TODO: this should be available on the server too /** - * Retrieves the Firebase App Check instance. Note this is only available on the client and will be `undefined` on the - * server. + * Retrieves the Firebase App Check instance. * * @param name - name of the application */ export function useAppCheck(name?: string) { - return AppCheckMap.get(useFirebaseApp(name)) + return AppCheckMap.get(useFirebaseApp(name))! } /**