faster-account-sdk-js v0.0.19
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__');