db_user_id_from_firebase: Find User From Firebase ID

Description Usage Arguments Value

View source: R/utils_db.R

Description

A signed-in user, by definition, has a Firebase ID. Because the ID was registered as a unique 'user_id' when the account was created, we can look it up in the user table and return its user (and username)

Usage

1
db_user_id_from_firebase(con, firebase_id)

Arguments

con

valid database connection

firebase_id

valid firebase ID for a signed in user

Value

numeric user_id; NA if no user exists or if the table is not in the database


personalscience/taster documentation built on Feb. 5, 2022, 9:27 p.m.