SSO not working with multiple applications

I have 2 applications, one is my main application, that users use Authentication API for signing in through it, and the other application has a SAML2 addon that uses SSO to connect to an LMS.

I’m using the token returned from the oauth/token API to store as the session token, but when I trigger the SSO connection, I’m being redirected to the login page again.

Thanks in advance.

Any updates on this issue?