-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Flutter Web] Unable to define SENTRY_AUTH_TOKEN via --dart-define #23
Comments
I'll just add - everything works if I put |
this plugin does not support |
We'd just need to add support for it using https://api.flutter.dev/flutter/dart-core/String/String.fromEnvironment.html on https://github.com/getsentry/sentry-dart-plugin/blob/main/lib/src/configuration.dart#L106-L114 and sentry-dart-plugin/lib/src/configuration.dart Lines 86 to 90 in 4786f9c
|
Shouldn't this plugin support reading the token from the |
This plugin uses sentry-cli underneath so it should, but the |
Makes sense, I jut felt like it was a bit hard to specify the auth token. Adding it in the pubspec.yaml seems like a security issue,
|
Yes, I agree. |
+1 |
Just add the SENTRY_AUTH_TOKEN as a env variable. It's easy to setup with CI |
From my understanding, |
The SDK already supports |
Environment
Flutter Web
How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
Flutter 2.8.1, sentry_dart_plugin: ^1.0.0-beta.1
Steps to Reproduce
In pubspec.yaml:
In terminal:
Expected Result
I expected it to work :D
Actual Result
Did I do something wrong?
Thanks!
The text was updated successfully, but these errors were encountered: