Skip to main content
This Example has not been tested yet. If you face any issues, please contact us at contact@bawabah.app

Install Bawanah Library

First, we have to install Bawabah Library from NPM (https://www.npmjs.com/package/bawabah) using the command:
After installing the npm Package, we can start using it immediately:
Replace {your-app-id} with your appId and {your-app-secret}with your appSecret From Create Your First App Step.

Create Callback Route using Express.js

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 the capture() function: But before that, we need to install Express.js using this command:
Need help? Join our community.

Create Login Page

Create the Login Page Component at src/views/Login.vue:
Create the Login Page Route in src/router/index.js:
Mount the router in main.js file at src/main.js:
Need help? Join our community.