Skip to content

Commit d97cad5

Browse files
committed
github oauth host issue fixed
1 parent 65f2f0c commit d97cad5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class SignInView extends StatelessWidget {
196196
// Go to OAuth provider login page
197197

198198
try {
199-
await account.createOAuth2Session(provider: 'github', success: "https://help-me-design.netlify.app/#/");
199+
await account.createOAuth2Session(provider: 'github', success: "https://help-me-design.sumitpanwar.com");
200200

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

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)