Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP_NOT_VERIFIED login error #2

Open
tkelii opened this issue Aug 25, 2023 · 11 comments
Open

APP_NOT_VERIFIED login error #2

tkelii opened this issue Aug 25, 2023 · 11 comments

Comments

@tkelii
Copy link

tkelii commented Aug 25, 2023

trying to put my phone number in says API error :: 400

@Jabolol
Copy link
Owner

Jabolol commented Aug 25, 2023

Hello! This is currently my fault, the error is non-descriptive and I'm already working on a refactor. It should be shipped in a few days.

That error means that your mobile phone must follow the format +$PREFIX $NUMBER. For example I am from Spain, so I would put +34 XXXXXXXXX. The plus and space between the country code and the number is important. BeReal's API is really picky with that. For reference, you can check the full country code list here.

@tkelii
Copy link
Author

tkelii commented Aug 25, 2023

i did put +44 xxxxxxxx and it says it still

@Jabolol
Copy link
Owner

Jabolol commented Aug 25, 2023

I'm on the process of a big refactor right now, scheduled for the coming days. A better process with more descriptive errors is already implemented. Here's how it looks, stay tuned!

image

@Jabolol
Copy link
Owner

Jabolol commented Aug 26, 2023

@tkelii this should have been fixed by 58f26b6. Feel free to reopen the issue if the error persists or if you need further help.

@Jabolol Jabolol closed this as completed Aug 26, 2023
@tkelii
Copy link
Author

tkelii commented Aug 27, 2023

now it says APP_NOT_VERIFIED

@Jabolol Jabolol reopened this Aug 27, 2023
@Jabolol
Copy link
Owner

Jabolol commented Aug 27, 2023

I can log in with a spanish phone number, it could maybe be related to the region but I highly doubt it. Can you check with another BeReal account?

@tkelii
Copy link
Author

tkelii commented Aug 28, 2023

a different account still says APP_NOT_VERIFIED

@Jabolol
Copy link
Owner

Jabolol commented Aug 28, 2023

The APP_NOT_VERIFIED error happens on a country basis. I get the error with phones from the United Kingdom, Georgia and Ukraine, amongst others. I do not get it with phones from Spain and the United States, for instance.

Currently the login logic is extracted from the app itself using a mitm proxy, so it would make sense that the hardcoded session variables and client ids are not valid worldwide.

I'll see if I can rewrite the login logic to use the firebase SDK as BeReal does.

@MomoCrafter2013
Copy link

Any update on the APP_NOT_VERIFIED error? I have a UK number and still get it.

Thanks

@Jabolol Jabolol changed the title login api error 400 APP_NOT_VERIFIED login error Sep 5, 2023
@Jabolol
Copy link
Owner

Jabolol commented Sep 5, 2023

I'm almost done with yet another login rewrite. It will land in a few days at most. Sorry for the inconvenience.

@bunaguna
Copy link

I have tried using the mitm proxy to get the API, since I also get APP_NOT_VERIFIED, but it uses
https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=......&cb=.......&androidPackageName=com.bereal.ft&sha1Cert=......
and returns

{
    "error": {
        "code": 403,
        "details": [
            {
                "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                "domain": "googleapis.com",
                "metadata": {
                    "consumer": "projects/405768487586",
                    "service": "identitytoolkit.googleapis.com"
                },
                "reason": "API_KEY_ANDROID_APP_BLOCKED"
            }
        ],
        "errors": [
            {
                "domain": "global",
                "message": "Requests from this Android client application <empty> are blocked.",
                "reason": "forbidden"
            }
        ],
        "message": "Requests from this Android client application <empty> are blocked.",
        "status": "PERMISSION_DENIED"
    }
}

is there any way to bypass this?
I guess they added some extra security measurements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants