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

Hi, I have created one single page application " MonoovaPortalSSOPOC" on the tenant “”.
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:, defined in Machine to Machine" FX Customer Portal (UAT)" ->“Application login URI”
    2). button 2: Jira customer portal;

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.