I’ve cloned this repository and it doesn’t really seem to work right out of the box. I’ve followed the instructions (modified auth.config.ts to utilize the correct app ID, added the callback URLs and Logout URLs to my application settings, added the allowed origins, modified the custom URL scheme in the Info tab which isn’t in the README) and running the app via the iOS simulator is not working. When I log in, the app does not redirect me anywhere, though it seems to be attempting to do so.
I’m seeing the following log in XCode:
TO JS {"url":"{redacted app ID}:\/\/{redacted domain}\/capacitor\/{redacted app ID}\/callback?
code=zAcaQU7_2FUrrjvvMzEwaa1j2tZaK4gJZHi64MCld2lnl&
state=Z2RMTXN5RXdzZEFPcW85Qnd1TkdKU0k1Vm4ydWlRM0JLZS1JOUVyUTl%2BNA%3D%3D
so it seems like the app is attempting to perform the redirect, but the app stays on the login page and the browser does not close. Once I manually close the browser and then click “Log in” again, it just shows a blank page in the webview.
Thank you for filing in the issue. I’m gonna share it here in the response for better visibility and gonna ping repo maintainers in a few minutes. Thank you!
It seems that Frederik laso responded there in the issue thread on GitHub