File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
android/src/main/java/com/rnappauth Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ public void register(
171
171
promise
172
172
);
173
173
} catch (Exception e ) {
174
- promise .reject ("Failed to refresh token " , e .getMessage ());
174
+ promise .reject ("registration_failed " , e .getMessage ());
175
175
}
176
176
} else {
177
177
final Uri issuerUri = Uri .parse (issuer );
@@ -182,7 +182,7 @@ public void onFetchConfigurationCompleted(
182
182
@ Nullable AuthorizationServiceConfiguration fetchedConfiguration ,
183
183
@ Nullable AuthorizationException ex ) {
184
184
if (ex != null ) {
185
- promise .reject ("Failed to fetch configuration " , getErrorMessage (ex ));
185
+ promise .reject ("service_configuration_fetch_error " , getErrorMessage (ex ));
186
186
return ;
187
187
}
188
188
@@ -466,7 +466,7 @@ public void onRegistrationRequestCompleted(@Nullable RegistrationResponse respon
466
466
WritableMap map = RegistrationResponseFactory .registrationResponseToMap (response );
467
467
promise .resolve (map );
468
468
} else {
469
- promise .reject ("Failed to refresh token " , getErrorMessage (ex ));
469
+ promise .reject ("registration_failed " , getErrorMessage (ex ));
470
470
}
471
471
}
472
472
};
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ - (dispatch_queue_t)methodQueue
62
62
[OIDAuthorizationService discoverServiceConfigurationForIssuer: [NSURL URLWithString: issuer]
63
63
completion: ^(OIDServiceConfiguration *_Nullable configuration, NSError *_Nullable error) {
64
64
if (!configuration) {
65
- reject (@" RNAppAuth Error " , [error localizedDescription ], error);
65
+ reject (@" service_configuration_fetch_error " , [error localizedDescription ], error);
66
66
return ;
67
67
}
68
68
[self registerWithConfiguration: configuration
@@ -241,7 +241,7 @@ - (void)registerWithConfiguration: (OIDServiceConfiguration *) configuration
241
241
if (response) {
242
242
resolve ([self formatRegistrationResponse: response]);
243
243
} else {
244
- reject (@" RNAppAuth Error " , [error localizedDescription ], error);
244
+ reject (@" registration_failed " , [error localizedDescription ], error);
245
245
}
246
246
}];
247
247
}
You can’t perform that action at this time.
0 commit comments