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))! } /**