뉴히의 개발 로그
[supabase] Authentication Policies RLS(row-level security) 인증 보안 정책 오류/해결/추가 방법 본문
Supabase
[supabase] Authentication Policies RLS(row-level security) 인증 보안 정책 오류/해결/추가 방법
뉴히 2024. 3. 22. 13:10
Uncaught (in promise) Error: new row violates row-level security policy for table "users"
at userUpdate (auth.ts:35:31)
at async signUpUser (auth.ts:30:5)
authentication > Policies > 해당 테이블 우측상단 Disable RLS
이렇게 RLS 보안을 비활성화 시키면 문제는 해결된다.
그러나 그보다 더 좋은 방법은
user 테이블에 정책을 추가하는게 더 좋을듯 하다.
우측 상단 New Policy > Get started quickly >Enable insert access for authenticated user only ~~ >INSERT를 허용하면된다.
'Supabase' 카테고리의 다른 글
[supabase] 수파베이스 테이블명 테이블이름 변경/삭제 (0) | 2023.08.25 |
---|---|
[TIL] 20230824 - supabase RLS 오류 테이블 생성 시 설정 INSERT/SELECT (0) | 2023.08.24 |
supabase typescript : 데이터베이스 테이블 제네릭 타입 선언 (0) | 2023.08.18 |