Use mobile phone numbers to authenticate users.
An object of class FirebasePhone.
firebase::Firebase -> firebase::FirebaseAuth -> FirebasePhone
Inherited methods
firebase::Firebase$expose_app()firebase::FirebaseAuth$clear()firebase::FirebaseAuth$delete_user()firebase::FirebaseAuth$expose_auth()firebase::FirebaseAuth$get_access_token()firebase::FirebaseAuth$get_delete_user()firebase::FirebaseAuth$get_id_token()firebase::FirebaseAuth$get_sign_out()firebase::FirebaseAuth$get_signed_in()firebase::FirebaseAuth$get_signed_up()firebase::FirebaseAuth$is_signed_in()firebase::FirebaseAuth$print()firebase::FirebaseAuth$req_sign_in()firebase::FirebaseAuth$req_sign_out()firebase::FirebaseAuth$request_id_token()firebase::FirebaseAuth$set_language_code()firebase::FirebaseAuth$sign_out()
new()FirebasePhone$new(
persistence = c("session", "local", "memory"),
config_path = "firebase.rds",
language_code = NULL,
session = shiny::getDefaultReactiveDomain()
)persistenceHow the auth should persit: none, the user has to sign in at every visit,
session will only persist in current tab, local persist even when window is closed.
config_pathPath to the configuration file as created by firebase_config.
language_codeSets the language to use for the UI.
Supported languages are listed here.
Set to browser to use the default browser language of the user.
sessionA valid shiny session.
Initialiases Firebase Phone
Initialises the Firebase application client-side.
verify()FirebasePhone$verify(number, id = NULL)numberPhone number of the user.
idId of the button that triggers verification.
If this is NULL the user has to go through the recaptcha,
if not NULL is invisible.
Verify a phhone number
get_recaptcha()FirebasePhone$get_recaptcha()Results from the recaptcha
confirm()FirebasePhone$confirm(code)codeConfirmation code received by the user.
Confirm a code
get_verification()FirebasePhone$get_verification()Get Verification
A list with a boolean (success) indicating
whether the operation was successful and a response
contianing the response from Firebase.
get_confirmation()FirebasePhone$get_confirmation()Get Confirmation
A list with a boolean (success) indicating
whether the operation was successful and a response
contianing the response from Firebase.
clone()The objects of this class are cloneable with this method.
FirebasePhone$clone(deep = FALSE)deepWhether to make a deep clone.