File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
views/screens/onboarding_screens/signin_signup_screen/widgets Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class AuthService extends ChangeNotifier {
104
104
105
105
signInWithProvider ({required String provider}) async {
106
106
try {
107
- final session = await account.createOAuth2Session (provider: provider);
107
+ final session = await account.createOAuth2Session (provider: provider, success : "https://help-me-design.sumitpanwar.com" );
108
108
_currentUser = await account.get ();
109
109
_status = AuthStatus .authenticated;
110
110
return session;
Original file line number Diff line number Diff line change @@ -193,19 +193,14 @@ class SignInView extends StatelessWidget {
193
193
194
194
final account = Account (client);
195
195
196
- // Go to OAuth provider login page
197
-
198
196
try {
199
- await account.createOAuth2Session (provider: 'github' , success: "https://help-me-design.netlify.app/#/ " );
197
+ await account.createOAuth2Session (provider: 'github' , success: "https://help-me-design.sumitpanwar.com " );
200
198
201
199
Navigator .pop (context);
202
200
const snackbar = SnackBar (content: Text ('Account created!' ));
203
201
ScaffoldMessenger .of (context).showSnackBar (snackbar);
204
202
} on AppwriteException catch (e) {
205
203
Navigator .pop (context);
206
204
}
207
-
208
- // account.get();
209
- // account.deleteSession(sessionId: "current");
210
205
}
211
206
}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class VerificationView extends StatelessWidget {
109
109
// Go to OAuth provider login page
110
110
111
111
try {
112
- await account.createOAuth2Session (provider: 'github' , success: "https://help-me-design.netlify.app/#/ " );
112
+ await account.createOAuth2Session (provider: 'github' , success: "https://help-me-design.sumitpanwar.com " );
113
113
114
114
Navigator .pop (context);
115
115
const snackbar = SnackBar (content: Text ('Account created!' ));
You can’t perform that action at this time.
0 commit comments