Adding Authentication UI Elements

At this point, your skeleton B4 application has session support, but no way to sign in. There are two parts to implementing the authentication flow—the front end and the back end.

On the front end, we need to add buttons so the user can choose the service with which to authenticate. The first step is to install the social buttons for Bootstrap so we can insert them into a template.[90] This module depends on Font Awesome for its icons,[91] so you’ll need to install that too. Use npm for both.

​ ​$ ​​npm​​ ​​install​​ ​​--save​​ ​​-E​​ ​​bootstrap-social@5.1.1​​ ​​font-awesome@4.7.0​

Next, for webpack to find and use these you’ll need to import them into ...

Get Node.js 8 the Right Way now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.