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

Client side logging from browser without exposing keys #74

Open
foysalit opened this issue Mar 5, 2024 · 0 comments
Open

Client side logging from browser without exposing keys #74

foysalit opened this issue Mar 5, 2024 · 0 comments

Comments

@foysalit
Copy link

foysalit commented Mar 5, 2024

Hello! I am trying to set up logging from the browser to logflare but all docs I could find point at configuring the pino logger instance with both apiKey and sourceToken in the browser. That can't be safe to expose to the world, right? What is the secure way of using the logger directly from the browser?

Following this documentation https://github.com/Logflare/pino-logflare/blob/master/docs/VERCEL.md BTW, fails on vercel because the client won't receive process.env.<ENV_VAR> unless those are public ones.

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