Install Bawanah Library
First, we have to install Bawabah Library from NPM (https://www.npmjs.com/package/bawabah) using the command:Replace{your-app-id}with your appId and{your-app-secret}with your appSecret From Create Your First App Step.
Create Callback Route
Now we will create the callback route to capture the user session. In this example, we will use Express.js to create the route, then capture the user session with thecapture() function:
But before that, we need to install Express.js using this command:
Need help? Join our community.
Create Login Route
Create the/login route to serve the Login Page:
Create Login Page
Create an HTML file with the namelogin.html to serve as the login page.
Need help? Join our community.