Remove user from file
Import the function at the top of your file
import { removeUserFromFile } from "swizzle-js";
Remove a user from a file (do not allow them to access the file with their access token) by using removeUserFromFile(url, userId)
. Do not pass the signed URL to this function.
const success = await removeUserFromFile(url, uid)
The user now cannot access the file unless it is explicitly signed by you.
Last updated