SwiftUI with Auth0 login app calling another API also protected by Auth0

I have a swiftui app that is using the auth0 sdk to authenticate. This works well but I also need to get my data from another API that is also protected by auth0. I tried adding the “.audience” parameter in my Auth0 initializer and then use the access token returned but my API is returning 403 forbidden. I also made sure that the user logging into the swift app has the correct scope for the API, what am I missing here? Do I need to request another auth to the API after the user logs into the swift app?

1 Like