How to build a single page web application SSO to other applications

Hi, I have created one single page application " MonoovaPortalSSOPOC" on the tenant “monoova-test.au.auth0.com”.
My idea is to

  1. Add 2 buttons on the screen;
  2. Once logged in from Auth0, click button 1 or button 2, should sso to its website without log in again.

for example, 2 buttons

  1. button 1: https://demo-trading.monoova.com/users/sign_in, defined in Machine to Machine" FX Customer Portal (UAT)" ->“Application login URI”
    2). button 2: Jira customer portal; https://monoova.atlassian.net/jira/servicedesk/customer/portals

Is it possible to add some java script on two button ‘click’ event to achieve?
such as: create auth0.WebAuth, then checksession?
Please share me any useful codes if possible.