wixMember not working after initial login until refresh

@admin30811 OK, thanks for letting me know. I’ll report back as soon as I have an update.

@marlowe-shaeffer Thank you!

@admin30811 We’ve confirmed the issue and the team will be rolling out a fix soon. Thanks for your patience.

not working for me even for currentMember.getMember.

Hey mate. I added this code to masterpage.js and it works.

import { authentication } from 'wix-members';
import wixLocation from 'wix-location';

$w.onReady(async () => {
    authentication.onLogin(() => { 
        wixLocation.to(wixLocation.url)
    });
});

@empro2pro didn’t help me unfortunately

@marlowe-shaeffer Any update on the fix date ?

@admin74950 I just checked with the development team, and there’s no update yet. There’s another issue blocking the fix. I’ll let you know as soon as I have an update.

I’m also facing the same issue - I’m using onLogin function but it works only for the first login. When user logs out and then signs in again immediately, onLogin doesn’t execute. And on top of that I’m facing another weird issue that posted for solution few days back here , still unresolved and seems to be Wix module issue and not issue with my code. Already written to Wix support, no response. :unamused:

Hi @admin30811 and @Admin Guy,
This issue is now resolved. Please let us know if you continue to experience any issues. Thanks!

@marlowe-shaeffer Sorry, didn’t see this notification. I confirmed on my end, looks like it’s working! Thank you so much Marlowe!

i am experiencing non-logged-in status when user first logs in (but persistence is okay after first-time login). Basically, after login, i need to refresh the page. is this issue still pervasive for you guys? how do i overcome this without telling my site visitors they need to do a manual refresh?

This is a very old post.
Please open a new post , explaining your issue in detail.

  1. Describe your setup.
  2. Show your code.
  3. Show console-logs (errors you get).
  4. and so on…

The more details you give about your issue → the better can be helped.

i managed to resolve this after I checked some videos and threads. I installed the following on my masterpage.

import { authentication } from ‘wix-members’;
import wixLocation from ‘wix-location’;

$w.onReady(async () => {
authentication.onLogin(() => {
wixLocation.to(wixLocation.url);
});
});

1 Like