Skip to content

[πŸ›] Auth - Cannot override async storage methodsΒ #8658

@AngeloMateus

Description

@AngeloMateus

Issue

Hey guys

I'm currently transitioning from @firebase/auth to @react-native-firebase/auth the issue is - Overriding async storage methods (getItem(), setItem()) no longer works
I've tried the following:

import { initializeApp } from "@react-native-firebase/app";
import { initializeAuth } from "@react-native-firebase/auth";
import { getReactNativePersistence } from "firebase/auth";

  const app = await initializeApp(firebaseConfig);
  const auth = initializeAuth(app, {
    persistence: getReactNativePersistence(Overriding class)
  });

Is there any way to override these methods?
Using @react-native-firebase 23.0.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions