@fangcha/account
TypeScript icon, indicating that this package has built-in type declarations

0.35.0 • Public • Published

account-service

Installation

# Use npm
npm install @fangcha/account

# Or use yarn
yarn add @fangcha/account

Options

interface Options {
  database: FCDatabase

  // Default: fc_account
  tableName_Account?: string

  // Default: fc_account_carrier
  tableName_AccountCarrier?: string

  // Default: fc_account_carrier_extras
  tableName_AccountCarrierExtras?: string
}

Usage

import { AccountServer } from '@fangcha/account'

const accountServer = new AccountServer({
  database: ……,
})

……

// Find account by accountUid
await accountServer.findAccount(accountUid)

// Find account by email
await accountServer.findCarrier(CarrierType.Email, email)

// Create Account
await accountServer.createAccount(params)

Readme

Keywords

Package Sidebar

Install

npm i @fangcha/account

Weekly Downloads

8

Version

0.35.0

License

MIT

Unpacked Size

140 kB

Total Files

78

Last publish

Collaborators

  • fangqk1991