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

Firebase DAM includes File URL with token? #4

Open
KyleSmith0905 opened this issue May 27, 2022 · 1 comment
Open

Firebase DAM includes File URL with token? #4

KyleSmith0905 opened this issue May 27, 2022 · 1 comment

Comments

@KyleSmith0905
Copy link

I have Sanity on the client of an application, idk if that's suggested or bad.

However, the fileURL that is available as a property of Firebase-DAM has a token query parameter. I believe this query token parameter is used for firebase storage rules to authorize images. Therefore, when I allow read: if false in firebase storage, I still was able to view the image with the fileURL sent.

Could I have an option for excluding FileURL from the document, or could you guide me on where the "options" are so I could try to fix it (and submit a pull request if you would like).

@KyleSmith0905
Copy link
Author

KyleSmith0905 commented May 27, 2022

Found out where the schema options are: https://github.com/hdoro/sanity-plugin-external-dam/blob/main/packages/core/src/components/Uploader/Uploader.tsx#L16
Here it is for future reference for myself and others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant