Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

카카오 로그인 pocketbase에 유저 정보 연동 #8

Closed
1 task done
Ko-Eunseo opened this issue Jan 24, 2024 · 2 comments
Closed
1 task done

카카오 로그인 pocketbase에 유저 정보 연동 #8

Ko-Eunseo opened this issue Jan 24, 2024 · 2 comments
Assignees

Comments

@Ko-Eunseo
Copy link
Collaborator

Ko-Eunseo commented Jan 24, 2024

  • pocketbase에 유저 정보 연동이 안됨

Originally posted by @Ko-Eunseo in #5 (comment)

@Ko-Eunseo Ko-Eunseo self-assigned this Jan 24, 2024
@huir0
Copy link
Owner

huir0 commented Jan 25, 2024

onPressed: () async {
final authData = await pb
.collection('users')
.authWithOAuth2('kakao', (url) async {
await launchUrl(url);
});
},
위와 같이 작성했을 때, 포켓베이스랑 연동되어 이메일 데이터 올라가는 거는 확인됐습니다.

@Ko-Eunseo
Copy link
Collaborator Author

문제 발생 원인과 해결방법

  1. 테스트 앱으로 연동해서 관리자 외에는 로그인할 수 없는 에러 발생: 테스트앱 말고 메인 앱 id와 secret을 사용할 것.
  2. 카카오로그인과 포켓베이스 authWithOAuth2 기능의 충돌으로 제대로 작동하지 않음: sdk 삭제.
  3. KOE 006에러 발생: id를 네이티브 앱 키에서 REST API 키로 바꿔서 해결

Ko-Eunseo added a commit that referenced this issue Jan 26, 2024
Ko-Eunseo added a commit that referenced this issue Jan 30, 2024
Ko-Eunseo added a commit that referenced this issue Jan 30, 2024
Ko-Eunseo added a commit that referenced this issue Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants