Skip to content

Commit aef0cca

Browse files
committed
Co-authored-by: William <[email protected]>
Override AuthenticateWithOAuth response factory
1 parent d927f38 commit aef0cca

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/src/v3/api/oauth/oauth.dart

+2-6
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ class AuthenticateWithOAuth
3131
final httpMethod = HttpMethod.post;
3232

3333
@override
34-
LoginResponse responseFactory(Map<String, dynamic> json) {
35-
// TODO: Check if this needs to be implemented.
36-
// At this point I don't think so, I don't think this returns anything.
37-
// Instead, I think the OAuth provider hits the redirect_uri route.
38-
throw UnimplementedError();
39-
}
34+
LoginResponse responseFactory(Map<String, dynamic> json) =>
35+
LoginResponse.fromJson(json);
4036
}

0 commit comments

Comments
 (0)