Pup

v2.x

AccountsOAuth

In order to use OAuth logins with Pup, you need to register your credentials for each of the supported services (Facebook, GitHub, or Google) that you wish to support. The good news: we've automated this as much as possible for you. In order to configure a supported service, you will need to update your settings-development.json (as well as settings-staging.json and settings-production.json) file in the root of your project.

For each service, you will need to provide:

  • An OAuth clientId (appId for Facebook)
  • An OAuth secret
  • loginStyle for user credential retrieval (popup or redirect)

You can retrieve credentials for each service at the following links:

/settings-development.json
{
  "public": {
    "graphQL": {
      "httpUri": "http://localhost:3000/graphql",
      "wsUri": "ws://localhost:4001/graphql"
    },
    "productName": "Product Name",
    "copyrightStartYear": "2018",
    "twitterUsername": "product",
    "facebookUsername": "product",
    "productAddress": "1658 N. Milwaukee Ave., #393, Chicago, IL 60647"
  },
  "private": {
    "MAIL_URL": "",
    "OAuth": {
      "facebook": {
        "enabled": true,
        "appId": "",
        "secret": "",
        "loginStyle": "popup"
      },
      "google": {
        "enabled": true,
        "clientId": "",
        "secret": "",
        "loginStyle": "popup"
      },
      "github": {
        "enabled": true,
        "clientId": "",
        "secret": "",
        "loginStyle": "popup"
      }
    },
    "supportEmail": "Customer Support <support@product.com>"
  }
}