Skip to content

Bug: Expo Android - cannot read property 'resetGenericPasswordForOptions' of null #54

Open
@raffiot

Description

Prerequisites

Describe the issue

Hello 👋
I want to report a bug that I have trying to use the library in my Expo Managed app.

I get [TypeError: Cannot read property 'resetGenericPasswordForOptions' of null] error every time I try to call client.register() or client.login()

My configuration is

package.json
{
  "react": "18.3.1",
  "react-native": "0.76.5",
  "expo": "~52.0.23",
  "@kinde-oss/react-native-sdk-0-7x": "^2.0.1",
}
import { KindeSDK } from "@kinde-oss/react-native-sdk-0-7x";

export const useKinde = () => {
  const client = new KindeSDK(
    process.env.EXPO_PUBLIC_KINDE_ISSUER_URL,
    process.env.EXPO_PUBLIC_KINDE_POST_CALLBACK_URL,
    process.env.EXPO_PUBLIC_KINDE_CLIENT_ID,
    process.env.EXPO_PUBLIC_KINDE_POST_LOGOUT_REDIRECT_URL
  );
const handleSignUp = async () => {
    try {
      const result = await client.register();
    } catch (error) {
      console.log("ERROR", error);
    }
  };

  const handleSignIn = async () => {
    try {
      const result = await client.login();
    } catch (error) {
      console.log("ERROR", error);
    }
  };

I've seen this error with React-Native Keychain on another thread, maybe it's linked?
Let me know if you need more details, and thanks again for your work on the lib! 🙏

Library URL

https://github.com/kinde-oss/kinde-react-native-sdk-0-7x

Library version

2.0.1

Operating system(s)

macOS

Operating system version(s)

macOs Sequoia 15.3

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions