mirror of
https://github.com/supabase/supabase.git
synced 2026-07-01 03:24:26 +08:00
Revert "Revert "Update auth hooks to use new endpoint and add perms checking"" (#29894)
Revert "Revert "Update auth hooks to use new endpoint and add perms checking"…"
This reverts commit a2a94d1f74.
This commit is contained in:
@@ -24,8 +24,8 @@ const EdgeFunctionSecrets = () => {
|
||||
const [showCreateSecret, setShowCreateSecret] = useState(false)
|
||||
const [selectedSecret, setSelectedSecret] = useState<ProjectSecret>()
|
||||
|
||||
const canReadSecrets = useCheckPermissions(PermissionAction.FUNCTIONS_READ, '*')
|
||||
const canUpdateSecrets = useCheckPermissions(PermissionAction.FUNCTIONS_WRITE, '*')
|
||||
const canReadSecrets = useCheckPermissions(PermissionAction.SECRETS_READ, '*')
|
||||
const canUpdateSecrets = useCheckPermissions(PermissionAction.SECRETS_WRITE, '*')
|
||||
|
||||
const { data, error, isLoading, isSuccess, isError } = useSecretsQuery({
|
||||
projectRef: projectRef,
|
||||
|
||||
Reference in New Issue
Block a user