Skip to content

Conversation

4BFC
Copy link
Member

@4BFC 4BFC commented Dec 1, 2024

🔗supabase 회원가입
🔗supabase 회원가입2
🔗supabase 회원가입3
🔗supabase 회원가입4 + sql

  • PostMan으로 supabase의 Signup을 테스트해보자.

    • PostMan으로 supabase의 Singup을 테스트 해본 결과 raw_user_meta_data값이 Null로 추가되는 불상사가 발생한다. 이는 supabase에서 제공하는 Signup의 의도를 위배했다고 추측되어 진다. supabase의 Signup은 email과 password로 이루어진 회원가입을 통해서 TOKEN을 반환하는 정도에서 그치는 정도의 용도로 이루어져있는 것 같다. 물론 supbase의 triiger function을 만들어서 public으로 생성한 users의 내가 추가 입력하고 싶은 row 필드를 삽입한 후에 작업을 해도 되지만 postman에서는 정상적으로 동작하지 않는 다는 것을 알았다. 이러한 이유를 알기위해 조금 더 서치하고 찾아볼 필요가 있다. GPT를 통해서 얻은 정보로는 Supabase의 자체적인 제한 때문일 가능이 있다는 추측만 난무하다. 일반적으로 supabase js의 SDK를 사용해서 처리할 경우 기본 설정을 자동으로 처리하지만 Postman으로 철히라 경우 수동을 처리해야하는 부분이 있기 떄문이라고 한다. Axios 또한 signup을 시도하면 postman과 동일한 현상이 발생한다.
  • supabase의 SDK 사용하기

    • 기본적으로 supbase의 SDK를 사용하면 createClient를 사용하는데 이때 두개의 매개변수가 필수 적으로 존재해야한다. 첫 번째는 내가 만든 supabase의 URL주소이고 두 번째는 anon API kyes이다. service_role은 서버를 만들어 낼때 사용하기에 우리는 anon만 확인하면 된다. 그리고 이를 async,await을 사용해서 데이터를 보내며 된다. 이 과정을 마치면 정상적으로 메타 데이터가 삽입되는 것을 확인 할 수 있다.

@4BFC 4BFC requested a review from nyun-nye December 1, 2024 09:37
@4BFC 4BFC self-assigned this Dec 1, 2024
@4BFC 4BFC added the ⚡supabase ⚡supabase label Dec 2, 2024
@4BFC 4BFC added this to the 🔥FireBase milestone Dec 2, 2024
@4BFC 4BFC linked an issue Dec 2, 2024 that may be closed by this pull request
3 tasks
@4BFC 4BFC merged commit 24f4ca1 into supabase Dec 2, 2024
@4BFC 4BFC deleted the pnpmworkspace/supabase/1 branch December 2, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡supabase ⚡supabase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mono-repo를 사용해서 supabase 회원가입을 시도해 본다.
1 participant