auth: The user authentication function:

Description Usage Arguments Value Examples

View source: R/index.R

Description

fireData::auth checks the validity of a login and returns the temporary JWT user token. FireData_auth can be used to store individual user data in specified directories that are only accessible to that specific user.

Usage

1
auth(projectAPI, email = "prompt", password = "prompt")

Arguments

projectAPI

The Firebase Project API string

email

The user email string

password

The user password string

Value

Returns the content of the firebase API request, such as the state of registration, idToken, and validity of the user password.

Examples

1
2
3
4
## Not run: 
auth(projectAPI = "AIzaSyAjZLO9-CRV3gObpwdFz-k8AiTOxHSBmdc", email = "robin@kohze.com", password = "12341234")

## End(Not run)

Kohze/fireData documentation built on Oct. 19, 2020, 8:19 a.m.