Gravity
Search…
Social Sign On
In addition to enabling your users to sign up/in with their email and password, Gravity supports signing in with 500+ social networks using Passport.js Social sign ons are still tied to an email address, so users can sign in with multiple social accounts and be linked to one central account. Social accounts can even create a password and log in with an email/password combo or social login.

Using Social Sign Ons with Gravity Native/Power

To use social sign ons with Gravity Native on your mobile device, you will need to install ngrok instead of using localhost in your callback URLs.
Please update the callback_url inside the /config folder files and ALSO the baseURL value inside app/config.json

Configuring Facebook

In order to sign in with Facebook, you will need to create an app in the Facebook developer portal and add your app ID and secret to the .env file (you'll be asked to do this during setup, or you can add it manually).
Please follow the Facebook documentation for the latest guidance on how to do this.

Configuring Twitter

As with Facebook, you will need to create an app in the Twitter developer portal and add your app ID and secret to the .env file.
Please follow the Twitter documentation for the latest guidance on how to do this.

Adding More Networks

You can add support for additional social networks in three easy steps:
  1. 2.
    Add the access keys to the .env file
  2. 3.
    Add/configure the Passport strategy in socialController.js

Disable the Social Sign Ins

If you'd like to disable social sign ins, you can remove the <SocialSignin/> component from the auth views in the client to remove the buttons and then disable the endpoints in router.js on the server.