AuthClient return anonymous Identity instead of logged in

Hi,

I’m getting the same issue. When I try to login, a new tab opens and I login with my test internet identity. It then closes the tab and comes back to the tab that I started on, but then nothing: I am not authenticated and all I get is this warning log

WARNING: expected origin 'http://a3shf-5eaaa-aaaaa-qaafa-cai.localhost:4943', got 'http://localhost:3000' (ignoring)

N.B: http://a3shf-5eaaa-aaaaa-qaafa-cai.localhost:4943 is the frontend of my internet identity canister, whereas http://localhost:3000 is the frontend canister of my app.

@richards Can I ask how you solved your issue ? (my code looks very much like yours)
@kpeacock it’s coming from this file that you wrote. Basically this warning is stopping the authentication request and I’m not sure what it’s trying to prevent :blush: :pray:

Thanks!