Open RCPOliveira opened 9 months ago
Your code looks like back-end code, this library has been designed for front-ends (running in browser where you have a global window
). However its should also be possible to run this in back-end call, it just means a little more effort on your side.
Maybe your problem is : https://github.com/authts/oidc-client-ts/blob/9f55da27fd6b6965f4a871a2b16fcee441235120/src/UserManager.ts#L188
You will need to change the default parameter to something useful in your case.
When I try to use the signInRedirect I'm getting the error ReferenceError: window is not defined. Can you help me identify what I'm doing wrong?