Hi, I've just been following your customer sign-up and sign-in tutorials. I want to make the sign-in button go to a member's home page instead of staying on the sign-in page.
Also, on the Signup page, I've done this to create a token and changed the code to make this work, but how do I clear the cells on the form after they have submitted their membership request?
Many thanks
Susie
Hi, You can redirect a user after they log in using the wixMembersFrontend and wixLocationFrontend APIs. It would look something like this:
import {authentication} from 'wix-members-frontend'; import wixLocationFrontend from 'wix-location-frontend'; //inside the onready authentication.onLogin(()=>{ wixLocationFrontend.to('https://example.com'); })
To clear inputs you can set their value to null or empty string. Best,
Eitan