|Import Statement:||import VPlayPlugins 1.0|
Note: Check out the Firebase Plugin page for more examples!
authenticated : bool
authenticatedAnonymously : bool
Read-only property returning
true if the user is currently authenticated anonymously,
See also loginUserAnonymously().
config : FirebaseConfig
This property defines the account configuration to use for this item. It includes the Firebase
database URL and more.
To use the default Firebase account defined in google-services.json and GoogleService-info.plist, do not assign this property or assign null.
email : string
Read-only property returning the email address of the user, if authenticated.
userId : string
Read-only property returning the userId of the authenticated user.
userToken : string
Read-only property returning the ID token of the authenticated user.
Logs in a user anonymously, without email and password. This method creates an anonymous account for the current device, if none exists yet.
An anonymous user can be authenticated with email and password later. You can call registerUser() while a user is already logged in anonymously. This way, the method will link the anonymous user with the provided email and password. This allows your users to sync their data across devices.
Note: Anonymous authentication is not enabled by default in a Firebase project. You can enable each authentication method you would like to use in your app in the Firebase backend console. To use anonymous accounts,
you can enable the sign-in method under
Authentication -> Sign-in method:
Registers a user with the provided email and password. If no user is logged in, it creates a new user in the authentication backend. If an anonymous user is logged in via loginUserAnonymously(), it links the anonymous user with the provided email and password.
After completion, the userRegistered() signal gets emitted.
void sendPasswordResetEmail(string email)
Sends an e-mail to the user with a link to reset the password. The password-reset process is handled by Firebase. The signal passwordResetEmailSent is emitted afterwards. It supplies information whether the plugin sent the e-mail successfully.
To customize the e-mail content, go to the the Firebase Console, open your app and click
Authentication -> Templates.
See also passwordResetEmailSent().
Voted #1 for: