add_account: add_account

Description Usage Arguments Value

View source: R/add_account.R

Description

Add an account to the "<schema name>.accounts" table.

Usage

1
2
3
4
5
6
7
add_account(
  conn,
  email,
  host_secret,
  account_secret = create_secret(),
  schema = "polished"
)

Arguments

conn

the database connection

email

the account email

host_secret

the secret key for the hosted API. The host_secret goes in the config.yml of your hosted API and is used to encrypt/decrypt the account secrets.

account_secret

the account secret key as generated by create_secret().

schema

the name of the database schema

Value

a named list with 2 elements - uid: the uid for the newly created account - secret: the api secret key for the newly created account


Tychobra/polishedapi documentation built on July 19, 2020, 11:41 p.m.