signInWithGitHub method
Future<void>
signInWithGitHub(
)
Implementation
Future<void> signInWithGitHub() async {
print('[ArcaneAuth] signInWithGitHub called');
_updateState(const AuthState.loading());
try {
verbose('Signing in with GitHub...');
print('[ArcaneAuth] Creating GitHub provider...');
final _GithubAuthProvider provider = _GithubAuthProvider();
print('[ArcaneAuth] Calling signInWithPopup...');
await _firebase.auth().signInWithPopup(provider).toDart;
print('[ArcaneAuth] signInWithPopup completed');
} catch (e) {
print('[ArcaneAuth] GitHub sign-in error: $e');
error('GitHub sign-in failed: $e');
_updateState(AuthState.withError(_parseFirebaseError(e)));
}
}