react-oidc-context icon indicating copy to clipboard operation
react-oidc-context copied to clipboard

Allow access to the underlying UserManager instance

Open ChillyBots opened this issue 3 years ago • 3 comments

Thanks for the great work!

Currently, you don't surface the entire UserManager object which has access to callbacks and methods unavailable from anywhere else such as:

signoutRedirectCallback
signoutPopupCallback
querySessionStatus

Ideally, you could just surface the UserManager alongside the User instance

ChillyBots avatar Apr 20 '22 08:04 ChillyBots

We are planing to allow to inject an UserManager instance, that would help you too. See this comment.

pamapa avatar Apr 25 '22 13:04 pamapa

The xCallback functions are handled within this library and are one of the main purpose of this library. There is no need to call them differently. The querySessionStatus function is in fact accessible already.

pamapa avatar Apr 27 '22 06:04 pamapa

+1 on this - we have a similar case where we want to get a static copy of the userManager in order to be able to use the access_token from static functions

rahul-sharma-uipath avatar Aug 03 '22 19:08 rahul-sharma-uipath

I added a separate issue for passing an UserManager into: #490

pamapa avatar Aug 31 '22 07:08 pamapa