These shortcodes will help to create a login / register element on your page or widget.
There are two options you can implement: FirebaseUI Web and a separate registration / login form.
FirebaseUI Web
FirebaseUI is an open-source JavaScript library for Web the provide a simple, customizable UI bindings on top of Firebase SDKs.
// This will show a login form as you can see on the sidebar [firebaseui_web][/firebaseui_web] // Add error source in order view error messages [firebase_error class='your-class-name'][/firebase_error]
Login Form
This form only support log in though email, and you can style it freely.
// After logging in, you will be redirect to the homepage. The redirect is optional. Default button text is "Login" [firebase_login button_text='Signin' redirect='/']
Registration Form
With this form, you can customize the registration form that will save extra fields such as phone number.
// Registration will extra fields: first name, last name phone number. The redirect, extra fields and requried fields are optional. Without those, it will only show email and password fields. [firebase_register required_fields='firstName,lastName,phoneNumber' extra_fields='firstName,lastName,phoneNumber' redirect='/'] If you want to send a verification email after user registers, you can add this option: send_email_confirmation=true