0

Im suppose to keep credentials in the backend using environment variables. However, when authenticating with facebook or google, I need to have certain credentials, otherwise useAuthRequest will not work. How do I hide the credentials in this case?

export default function App() {
  const [request, response, promptAsync] = Facebook.useAuthRequest({
    clientId: "FB_APP_ID",
    expoClientId: "FB_APP_ID",
    scopes: ['public_profile'],
    redirectUri: AuthSession.makeRedirectUri({ useProxy: true }),
      
  });
}
1
  • The only variable in your example is the Facebook App ID - that one is perfectly fine to publish, it is not a secret ID
    – andyrandy
    Mar 17 at 20:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy