Skip to content

Commit

Permalink
Merge pull request #878 from tw-mosip/feature-205-error-vc-download
Browse files Browse the repository at this point in the history
feat(INJI-205): Error handling in OIDC flow
  • Loading branch information
vijay151096 authored Oct 10, 2023
2 parents 37c652b + 2e91aef commit e5963cf
Show file tree
Hide file tree
Showing 15 changed files with 425 additions and 139 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ DEBUG_MODE=false
APPLICATION_LANGUAGE=en

#Toggle for openID for VC
ENABLE_OPENID_FOR_VC=false
ENABLE_OPENID_FOR_VC=true
22 changes: 11 additions & 11 deletions machines/activityLog.typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@

export interface Typegen0 {
'@@xstate/typegen': true;
'internalEvents': {
'xstate.init': { type: 'xstate.init' };
internalEvents: {
'xstate.init': {type: 'xstate.init'};
};
'invokeSrcNameMap': {};
'missingImplementations': {
invokeSrcNameMap: {};
missingImplementations: {
actions: never;
delays: never;
guards: never;
services: never;
};
'eventsCausingActions': {
eventsCausingActions: {
loadActivities: 'REFRESH' | 'xstate.init';
prependActivity: 'STORE_RESPONSE';
setActivities: 'STORE_RESPONSE';
storeActivity: 'LOG_ACTIVITY';
};
'eventsCausingDelays': {};
'eventsCausingGuards': {};
'eventsCausingServices': {};
'matchesStates':
eventsCausingDelays: {};
eventsCausingGuards: {};
eventsCausingServices: {};
matchesStates:
| 'init'
| 'ready'
| 'ready.idle'
| 'ready.logging'
| 'ready.refreshing'
| { ready?: 'idle' | 'logging' | 'refreshing' };
'tags': never;
| {ready?: 'idle' | 'logging' | 'refreshing'};
tags: never;
}
22 changes: 11 additions & 11 deletions machines/auth.typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

export interface Typegen0 {
'@@xstate/typegen': true;
'internalEvents': {
'': { type: '' };
internalEvents: {
'': {type: ''};
'done.invoke.auth.authorized:invocation[0]': {
type: 'done.invoke.auth.authorized:invocation[0]';
data: unknown;
Expand All @@ -14,19 +14,19 @@ export interface Typegen0 {
data: unknown;
__tip: 'See the XState TS docs to learn how to strongly type this.';
};
'xstate.init': { type: 'xstate.init' };
'xstate.init': {type: 'xstate.init'};
};
'invokeSrcNameMap': {
invokeSrcNameMap: {
downloadFaceSdkModel: 'done.invoke.auth.authorized:invocation[0]';
generatePasscodeSalt: 'done.invoke.auth.introSlider:invocation[0]';
};
'missingImplementations': {
missingImplementations: {
actions: never;
delays: never;
guards: never;
services: never;
};
'eventsCausingActions': {
eventsCausingActions: {
requestStoredContext: 'xstate.init';
setBiometrics: 'SETUP_BIOMETRICS';
setContext: 'STORE_RESPONSE';
Expand All @@ -40,18 +40,18 @@ export interface Typegen0 {
| 'done.invoke.auth.authorized:invocation[0]'
| 'done.invoke.auth.introSlider:invocation[0]';
};
'eventsCausingDelays': {};
'eventsCausingGuards': {
eventsCausingDelays: {};
eventsCausingGuards: {
hasBiometricSet: '';
hasData: 'STORE_RESPONSE';
hasLanguageset: '';
hasPasscodeSet: '';
};
'eventsCausingServices': {
eventsCausingServices: {
downloadFaceSdkModel: 'LOGIN' | 'SETUP_PASSCODE';
generatePasscodeSalt: 'SELECT';
};
'matchesStates':
matchesStates:
| 'authorized'
| 'checkingAuth'
| 'init'
Expand All @@ -60,5 +60,5 @@ export interface Typegen0 {
| 'savingDefaults'
| 'settingUp'
| 'unauthorized';
'tags': never;
tags: never;
}
6 changes: 3 additions & 3 deletions machines/bleShare/request/requestMachine.typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ export interface Typegen0 {
prependReceivedVc: 'VC_RESPONSE';
registerLoggers:
| 'DISCONNECT'
| 'DISMISS'
| 'RESET'
| 'xstate.after(DESTROY_TIMEOUT)#request.clearingConnection';
removeLoggers:
| 'DISCONNECT'
| 'DISMISS'
| 'RESET'
| 'SCREEN_BLUR'
| 'xstate.after(DESTROY_TIMEOUT)#request.clearingConnection'
| 'xstate.init';
Expand Down Expand Up @@ -105,7 +105,7 @@ export interface Typegen0 {
eventsCausingServices: {
advertiseDevice:
| 'DISCONNECT'
| 'DISMISS'
| 'RESET'
| 'xstate.after(DESTROY_TIMEOUT)#request.clearingConnection';
checkBluetoothService: 'NEARBY_ENABLED';
checkNearByDevicesPermission:
Expand Down
Loading

0 comments on commit e5963cf

Please sign in to comment.