twilio / twilio-voice-react-native-app

Other
38 stars 21 forks source link

Trailing forward slash causes the Auth0 /userinfo route to fail #175

Open danohn opened 1 month ago

danohn commented 1 month ago

The server example.env currently contains a trailing forward slash for the AUTH0_ISSUER_BASE_URL: https://github.com/twilio/twilio-voice-react-native-app/blob/b568391ea7e47b853f1f2c137ff7b473bb438ded/server/example.env#L37

As a result, the getUserInfo function sends the axios request as //userinfo which causes Auth0 to return 404 Not Found:

https://github.com/twilio/twilio-voice-react-native-app/blob/b568391ea7e47b853f1f2c137ff7b473bb438ded/server/src/utils/auth.ts#L36