@Dhoddi, Tarun , The ask is really not clear. if you are trying to implement single signon for your OAuth apps, and if you have used either adal or msal libraries to write the code, the SSO feature should be available automatically. The sample that you have used uses Open ID Connect as the protocol which issues access tokens and refresh token to the user who has authenticated to the app. In the same browser if another app is accessed, the same user would be automatically logged in because the browser maintains the session of that user. The session for that user would be maintained until either the browser is closed or the access token expires (after 1 hour as set by default) and the refresh token is not used.
Do let me know if this explanation doesnt help, do let share your exact requirement, so that we can help further.
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.