@@ -7,11 +7,8 @@ class FeedbackView extends ConsumerStatefulWidget {
77 /// Featurebase organization name (example: featurebase)
88 final String organizationName;
99
10- /// SSO Token URL (See README.md for more information)
11- final String ssoTokenUrl;
12-
13- /// SSO Auth Token (See README.md for more information)
14- final String ssoAuthToken;
10+ /// SSO Auth (See README.md for more information)
11+ final SSOAuth auth;
1512
1613 /// App name (example: Featurebase)
1714 final String appName;
@@ -38,8 +35,7 @@ class FeedbackView extends ConsumerStatefulWidget {
3835 super .key,
3936 required this .logo,
4037 required this .organizationName,
41- required this .ssoTokenUrl,
42- required this .ssoAuthToken,
38+ required this .auth,
4339 required this .appName,
4440 required this .primaryColor,
4541 this .textColor = Colors .black,
@@ -84,8 +80,8 @@ class _FeedbackViewState extends ConsumerState<FeedbackView> {
8480 _fbService.setup (
8581 widget.organizationName,
8682 widget.enableHapticFeedback,
87- ssoTokenUrl: widget.ssoTokenUrl ,
88- ssoAuthToken: widget.ssoAuthToken ,
83+ ssoTokenUrl: widget.auth.tokenUrl ,
84+ ssoAuthToken: widget.auth.token ,
8985 );
9086 init ();
9187 super .initState ();
0 commit comments