Account Kit Plugin

This plugin allows you to login without passwords via email or phone number

Platforms:

this plugin only works Android and iOS

Functions:

accountKit.loginWithEmail(listener)

listener(function) if event.isError is true event.error(string) is returned, event.isError is false then the following is returned: event.email(string), event.mobile(string), event.accessToken(string), and event.id(string)

accountKit.loginWithPhoneNumber(listener)

listener(function) if event.isError is true event.error(string) is returned, event.isError is false then the following is returned: event.email(string), event.mobile(string), event.accessToken(string), and event.id(string)

accountKit.getInfo(listener)

listener(function) if event.isError is true event.error(string) is returned, event.isError is false then the following is returned: event.email(string), event.mobile(string), and event.id(string)

accountKit.isUserLoggedIn()

-- returns boolean

Build Settings and Setup:

First make sure you have facebook developer account setup, if not view this guide to get you started. Once you have done that go into your app and add a product. The product you want to add is "Account Kit". Make sure you paste Account Kit Client Token and Facebook id in the area it need to go in the build settings(see below). Make sure you hit "Yes" for "Allow Email Login", "Enable Client Access Token Flow", and "Allow SMS Login". "Require App Secret" should be "No".

Helpful Links:

Example

Support

Get Plugin