Skip to content

Commit 065d156

Browse files
authored
Merge pull request #33 from sumit-coder/ui_work
UI work
2 parents fda03f7 + 400a522 commit 065d156

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

lib/appwrite_service/auth_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class AuthService extends ChangeNotifier {
104104

105105
signInWithProvider({required String provider}) async {
106106
try {
107-
final session = await account.createOAuth2Session(provider: provider);
107+
final session = await account.createOAuth2Session(provider: provider, success: "https://help-me-design.sumitpanwar.com");
108108
_currentUser = await account.get();
109109
_status = AuthStatus.authenticated;
110110
return session;

lib/views/screens/onboarding_screens/signin_signup_screen/widgets/signin_view.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,14 @@ class SignInView extends StatelessWidget {
193193

194194
final account = Account(client);
195195

196-
// Go to OAuth provider login page
197-
198196
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");
200198

201199
Navigator.pop(context);
202200
const snackbar = SnackBar(content: Text('Account created!'));
203201
ScaffoldMessenger.of(context).showSnackBar(snackbar);
204202
} on AppwriteException catch (e) {
205203
Navigator.pop(context);
206204
}
207-
208-
// account.get();
209-
// account.deleteSession(sessionId: "current");
210205
}
211206
}

lib/views/screens/onboarding_screens/signin_signup_screen/widgets/verification_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class VerificationView extends StatelessWidget {
109109
// Go to OAuth provider login page
110110

111111
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");
113113

114114
Navigator.pop(context);
115115
const snackbar = SnackBar(content: Text('Account created!'));

0 commit comments

Comments
 (0)