hitherejoe / FlutterOAuth

A Flutter OAuth package for performing user authentication for your apps.
Other
178 stars 56 forks source link

how to hide YOUR_CLIENT_SECRET from my app #19

Open rupamking1 opened 3 years ago

rupamking1 commented 3 years ago

how to hide YOUR_CLIENT_SECRET from my app

Ahmadre commented 3 years ago

use:

--dart-define=SECRET=Value

as your env-variable.

rupamking1 commented 3 years ago

use:

--dart-define=SECRET=Value

as your env-variable.

can i hide completely secret key from my app using this method?

Ahmadre commented 3 years ago

use:

--dart-define=SECRET=Value

as your env-variable.

can i hide completely secret key from my app using this method?

Yes, of course. Seems like you never heard of env-variables. They appear nowhere, check this out: stackoverflow and please close this, because this hasn't anything to do with the package :)

rupamking1 commented 3 years ago

is that works on release mode.

Ahmadre commented 3 years ago

is that works on release mode.

Of course! It's especially made for releases and flavoured apps. Why don't you just try ;)