File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -756,8 +756,9 @@ class GoTrueClient {
756
756
}
757
757
758
758
final errorDescription = url.queryParameters['error_description' ];
759
+ final errorCode = url.queryParameters['error_code' ];
759
760
if (errorDescription != null ) {
760
- throw AuthException (errorDescription);
761
+ throw AuthException (errorDescription, statusCode : errorCode );
761
762
}
762
763
763
764
if (_flowType == AuthFlowType .pkce) {
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ void main() {
137
137
fail ('getSessionFromUrl did not throw exception' );
138
138
} on AuthException catch (error) {
139
139
expect (error.message, errorMessage);
140
+ expect (error.statusCode, '401' );
140
141
} catch (error) {
141
142
fail (
142
143
'getSessionFromUrl threw ${error .runtimeType } instead of AuthException' );
You can’t perform that action at this time.
0 commit comments