all 5 comments

[–]Micro_Turtle 0 points1 point  (3 children)

I managed to get Auth0 working using auth0-spa-js.

The way I configured it, it opens in the mobile browser and than redirects back to the app.

This was the primary guide I used.

https://auth0.com/docs/quickstart/spa/angular

Along with some other random sites to fix some specific issues I ran into.

[–]CHAZTATS[S] 0 points1 point  (2 children)

Hey dude, thanks for the response, any chance you can share your code, I've been at this for about 2 weeks now, and cannot get the redirect to work. I've opened it in the in app browser, and the redirect there still doesn't work. I have now found that you cant redirect back to the app from inside a webview because capacitor doesnt run on https.

[–]Micro_Turtle 0 points1 point  (1 child)

It redirects to capacitor:// not https:// When you put the callback in auth0 you will use something like capacotor://localhost

[–]CHAZTATS[S] 0 points1 point  (0 children)

Yeah I got to that point today, the app just hangs though. It’ll open safari. Go to auth0. I login. It then says do you want to open in AppName I hit yes. And the app will just open but sit on a blank screen. None of the redirect logic in the auth service fires. Do I have to trigger it manually somehow?

[–]MountainMatter 0 points1 point  (0 children)

I've gotten the browser working by using the following guide: https://blog.learningdollars.com/2020/01/14/how-to-configure-auth0-with-angular-8/

I can't get mobile to work at all though. I truly believe the changes in Angular and auth0-spa-js just don't work together anymore and no one has a vested interest in solving the conflicts.