Develop globalPage custom app with SSO atlassian cloud user

I need to develop a custom app using Forge with globalPage, and wanted to use atlassian auth 2.0 app to authenticate user and get jwt access token. Any reference or code that can help me to develop this? on further, need SSO to be implemented so that the code which is generated from frontend app will be then validated on backend api and user will be signed in. Is this possible or any work around?

Hey @dev360lawgroup

Forge controls the app runtime, which enables it to provide managed APIs that apps can use to make secure calls to REST APIs.
In Forge, API calls are automatically authenticated on behalf of the app by the surrounding Forge infrastructure removing the need for you to store user credentials. You can learn more at https://developer.atlassian.com/platform/forge/security/#simple-and-secure-authentication

I hope this explains,

Cheers!
Mel