inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

리액트 네이티브 구글 로그인

274

작성자 없음

작성한 질문수 0

0

안녕하세요 지금 expo go에서 구글 로그인 연결 중 인데요.

redirectUri를 https://auth.expo.io/@your-username/your-app-slug 식으로 입력하면 Something went wrong trying to finish signing in. Please close this screen to go back to the app. 화면이 뜨면서 액세스 토큰은 불러와지는 것 같고, 밑에 방식으로 하면 redirectUri가 exp://ip주소:포트번호 로 나오면서 구글 클라우드 콘솔에 등록을 할 수가 없는데 어떻게 해결하면 좋을까요?.. 도와주시면 감사하겠습니다..

 const [request, response, promptAsync] = Google.useAuthRequest({
    clientId: process.env.GOOGLE_CLIENT_ID,
    //redirectUri: 'https://auth.expo.io/@your-username/your-app-slug',
    redirectUri: makeRedirectUri({ useProxy: true } as any),
    scopes: ['profile', 'email'],
  });

react react-native expo google expo-auth-session

답변 1

0

eggmun(문성진)

안녕하세요.
어떤 라이브러리를 사용하시나요?

만약 @react-native-google-signin/google-signin 이 패키지를 사용하신다면 expo go에서는 사용 못 합니다. 아래 공식 문서에 나와 있습니다.
https://docs.expo.dev/guides/google-authentication/

 

만약 사용하고 싶으시면 https://docs.expo.dev/develop/development-builds/introduction/ development build를 하시거나 실제 운영 빌드를 하셔서 사용하셔야 될 거 같습니다!

0

eggmun(문성진)

Google.useAuthRequest

위에서 Google 객체의 useAuthRequest 메서드는 어떤 패키지에서 가져오는지 궁금합니다

0

eggmun(문성진)

위 라이브러리도 똑같이 expo go에서 사용이 불가하다고 합니다.

 

  • Expo Go cannot be used for local development and testing of OAuth or OpenID Connect-enabled apps due to the inability to customize your app scheme. You can instead use a Development Build, which enables an Expo Go-like development experience and supports OAuth redirects back to your app after login in a manner that works just like it would in production.

https://docs.expo.dev/guides/authentication/

1

eggmun(문성진)

위 라이브러리를 로컬에서 테스트 하고 싶다면 development build를 하셔야 됩니다!

development build에 대해 모르는게 있으시면 물어보셔도 됩니다!

React 와 Virtual DOM 의 이야기 영상 실행이 안됩니다.

0

1

0

깃허브 Publish 질문

0

5

1

클로드 코드 프로 사용자인데..

0

4

1

강의는 순서대로 들어야 할까요??

0

5

0

supabase 사용 관련.

0

7

1

상태(State) 가 "시간이 지남~" 에 대해 질문 있습니다.

0

14

2

문서 업데이트

0

21

1

/init

0

27

1

이미지내 텍스트 인식시키는 방법

0

14

0

문서, 파일, 웹사이트 참고 관련

0

15

1

vs code에서 클로드 설정

0

22

1

서브에이전트 복사 관련

0

15

1

prd 생성 서브에이전트 description 관련

0

16

1

94강 PRD 문서 검토 서브에이전트 관련 질문드려요.

0

17

1

init 오류

0

20

1

task manager 사용시 서브에이전트 개입 관련

0

19

2

카드뉴스 제작 시 CSS 사용 관련

0

20

1

165강 카드뉴스 관련 질문드려요.

0

22

1

CLAUDE.md 분산관리 관련 질문드려요.

0

22

1

github 사례 적용 방법

0

20

1

프로젝트 도입 관련

0

18

1

서브에이전트와 팀에이전트 관련

0

18

1

161강에서 소개해 주신 CLAUDE.md 파일 적용 관련

0

20

1

강의 따라 하는데 강의에서 갑자가 생성되는 폴더는?

0

22

1