Skip to content

MISSING_OR_NULL_ORIGIN #8

@Felix-Jorge-Flores

Description

@Felix-Jorge-Flores

Hello! Im having an issue, when i try to signIn.

I'm using a physical Android device (Poco X5 Pro 5G).

Versions:
Better auth: 1.3.34
flutter better auth: 0.1.3

How to reproduce:

  1. Configure the server.ts file on better auth
  trustedOrigins: ['flutter://', 'http://localhost:3005'],
  1. Deeplink
     <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="flutter" />
            </intent-filter>
  1. Try to sign in with client.
 await client.signIn.email(
        email: event.email,
        password: event.password,
      );

I receive the error MISSING_OR_NULL_ORIGIN as in the next image.

Image

I configured my trustedOrigins and my deeplink and doesn't work

I search for solutions and only disable origin check on better auth server works:

advanced: {
        disableOriginCheck: true,
 },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions