Authentication in Saas App using Js widget Sample

Hi there,
I want to Implement in app chat in my Saas external Apps. We have setup Central AuthO SSO server for authentication. I want to implement this session based authentication with the widget. How i can do that? I have read someWhere that it js sdk does not support session based authnetication it only support token based authentication So is there any repo which i can follow for authentication or any tutrial that someone has built for it. I need a step by step guide for this as i am very new to laravel backend and SSO Authentication.