Skip to content

Commit

Permalink
[ncl] Add projectNameForProxy to a bunch of places [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Jul 8, 2022
1 parent 4ef48d2 commit 01095ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function AuthSection({
onPress={(color) =>
promptAsync({
useProxy,
projectNameForProxy: '@community/native-component-list',
// Tint the controller
toolbarColor: color,
// iOS -- unused, possibly should remove the types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ export default function AuthSessionScreen() {
value={language}
setValue={setLanguage}
/>
<H4>
ID:{' '}
{Constants.manifest?.originalFullName ||
Constants.manifest2?.extra?.expoClient?.originalFullName ||
Constants.manifest?.id ||
'unset'}
</H4>
<H4>ID: @community/native-component-list</H4>
</View>
<H2>Services</H2>
<AuthSessionProviders
Expand Down Expand Up @@ -102,6 +96,7 @@ function AuthSessionProviders(props: {
path: 'redirect',
preferLocalhost: Platform.select({ android: false, default: true }),
useProxy,
projectNameForProxy: '@community/native-component-list',
});

const options = {
Expand Down Expand Up @@ -151,6 +146,7 @@ function Google({ prompt, language, usePKCE }: any) {
},
{
path: 'redirect',
projectNameForProxy: '@community/native-component-list',
preferLocalhost: true,
}
);
Expand Down Expand Up @@ -182,6 +178,7 @@ function GoogleFirebase({ prompt, language, usePKCE }: any) {
},
{
path: 'redirect',
projectNameForProxy: '@community/native-component-list',
preferLocalhost: true,
}
);
Expand Down Expand Up @@ -522,6 +519,7 @@ function Facebook({ usePKCE, useProxy, language }: any) {
{
path: 'redirect',
preferLocalhost: true,
projectNameForProxy: '@community/native-component-list',
useProxy,
}
);
Expand Down
1 change: 1 addition & 0 deletions packages/expo-auth-session/src/providers/Facebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export function useAuthRequest(
// The redirect URI should be created using fb + client ID on native.
native: `fb${clientId}://authorize`,
useProxy,
projectNameForProxy: '@community/native-component-list',
...redirectUriOptions,
});
}, [useProxy, clientId, config.redirectUri, redirectUriOptions]);
Expand Down

0 comments on commit 01095ed

Please sign in to comment.