auth0-samples / auth0-ionic4-samples

Auth0 Integration Samples for Ionic 4
https://auth0.com/docs/quickstart/native/ionic4/01-login
MIT License
2 stars 14 forks source link

Issue with logout URL #2

Closed alharding closed 4 years ago

alharding commented 4 years ago

In the auth.service.ts file where it populates the ${domain} I noticed that the url it generates leaves the '$' in there and the logout URL tries to go to: https://%24 followed by the configured app's domain. It seems to be URL encoding the $ and prevents logging out unless the auth.service.ts file is fixed and you manually remove the $ from the generated URL.

Screen Shot 2019-10-29 at 5 09 32 PM

alharding commented 4 years ago

I think I see what's happening it's supposed to grab ${domain} from the const above and read it fromAUTH_CONFIG.domain; but the actual generated file is leaving it as $ + AUTH_CONFIG.domain which when you run the app that $ gets encoded and the logout breaks.