sign_in {firebase.auth.rest} | R Documentation |
Sign in a user with email & password
Description
Sign in a user with email & password
Usage
sign_in(email, password)
Arguments
email |
User email |
password |
User password |
Details
Visit Firebase Auth REST API docs for more details
Value
A named list with the following items:
-
idToken
: A Firebase Auth ID token for the authenticated user. -
email
: The email for the authenticated user. -
refreshToken
: A Firebase Auth refresh token for the authenticated user. -
expiresIn
: The number of seconds in which the ID token expires. -
localId
: The uid of the authenticated user. -
registered
: Whether the email is for an existing account. -
error
:-
NULL
if no error code in response A list of 2 if response was an error:
-
code
: Error code -
message
: Error message
-
-
Examples
## Not run:
sign_in(email = "user-email", password = "strong-password")
## End(Not run)
[Package firebase.auth.rest version 1.0.0 Index]