0.0.19 • Published 2 years ago

faster-account-sdk-js v0.0.19

Weekly downloads
1
License
UNLICENSED
Repository
github
Last release
2 years ago

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__');
0.0.19

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

3 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago