faster-account-sdk-js

0.0.19 • Public • Published

Faster

Faster Account SDK - JavaScript

Faster is a framework which provides analytics, account, billing and remote-config features.

This project is related to SDK for Javascript development given a easy-to-use API to work with.

Currently released features:

  • Analytics (Check Package):

    • Track Device Installation
    • Session Control
    • Track & Send Events
  • Remote Config (Check Package):

    • Run AB Tests
    • Manage Feature Rollout
  • Account (This package):

    • Manage Sessions
    • Create, Link and Manage Credentials
  • Billing: coming soon

1 - Getting Started

Installing

Get the package from the public npm registry, with your favorite package manager:

yarn add faster-account-sdk-js

or

npm install faster-account-sdk-js

Request credentials

Request a new applicationKey and applicationSecret with faster-team at Movile.

For security purpose DO NOT share or store your applicationSecret.

Usage

Import the Faster Account module and FasterConfiguration object using ES6 syntax.

import  FasterAccount, { FasterConfiguration } from  'faster-account-sdk-js';

Configuring & Running

Now, configure and start Faster SDK:

Typescript and JavaScript:

const  configuration = new  FasterConfiguration('__appKey__', '__secretKey__', options);

FasterAccount.configure(configuration);

fasterAccount = FasterAccount.start();

Sessions

Create Auth session using Faster email credentials

fasterAccount.authSession.createAuthSession(IdentityProvider.FASTER, '__email__', '__pass__');

You're able to create user session

fasterAccount.userSession.createUserSession();

Also, sign out is available to use

fasterAccount.auth.signOut();

Credentials

You can manage credentials using Faster Identity Provider

Sign Up

fasterAccount.email.signUp('__email__', '__pass__');

Reset password

fasterAccount.email.resetPassword('__email__');

Link email credential

fasterAccount.credentials.linkEmail(IdentityProvider.FASTER, '__email__', '__pass__');

Readme

Keywords

none

Package Sidebar

Install

npm i faster-account-sdk-js

Weekly Downloads

0

Version

0.0.19

License

UNLICENSED

Unpacked Size

75.2 kB

Total Files

4

Last publish

Collaborators

  • faster.team