-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(inji-438): upgrade the authenticate & consent endpoint versi…
…on to v2 from v1 (#975) * refactor(inji-438): upgrade the authenticate & consent endpoint version to v2 from v1 Signed-off-by: Vijay <[email protected]> * refactor(inji-438): extracted the getJWT method and reused across app Signed-off-by: Vijay <[email protected]> --------- Signed-off-by: Vijay <[email protected]>
- Loading branch information
1 parent
ce232b2
commit 1b071df
Showing
6 changed files
with
212 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
// This file was automatically generated. Edits will be overwritten | ||
|
||
export interface Typegen0 { | ||
'@@xstate/typegen': true; | ||
internalEvents: { | ||
"done.invoke.QrLogin.linkTransaction:invocation[0]": { type: "done.invoke.QrLogin.linkTransaction:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"done.invoke.QrLogin.sendingAuthenticate:invocation[0]": { type: "done.invoke.QrLogin.sendingAuthenticate:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"error.platform.QrLogin.linkTransaction:invocation[0]": { type: "error.platform.QrLogin.linkTransaction:invocation[0]"; data: unknown }; | ||
"error.platform.QrLogin.sendingAuthenticate:invocation[0]": { type: "error.platform.QrLogin.sendingAuthenticate:invocation[0]"; data: unknown }; | ||
"error.platform.QrLogin.sendingConsent:invocation[0]": { type: "error.platform.QrLogin.sendingConsent:invocation[0]"; data: unknown }; | ||
"xstate.init": { type: "xstate.init" }; | ||
}; | ||
invokeSrcNameMap: { | ||
"linkTransaction": "done.invoke.QrLogin.linkTransaction:invocation[0]"; | ||
"sendAuthenticate": "done.invoke.QrLogin.sendingAuthenticate:invocation[0]"; | ||
"sendConsent": "done.invoke.QrLogin.sendingConsent:invocation[0]"; | ||
}; | ||
missingImplementations: { | ||
actions: never; | ||
delays: never; | ||
guards: never; | ||
services: never; | ||
}; | ||
eventsCausingActions: { | ||
"SetErrorMessage": "error.platform.QrLogin.linkTransaction:invocation[0]" | "error.platform.QrLogin.sendingAuthenticate:invocation[0]" | "error.platform.QrLogin.sendingConsent:invocation[0]"; | ||
"expandLinkTransResp": "done.invoke.QrLogin.linkTransaction:invocation[0]"; | ||
"forwardToParent": "DISMISS"; | ||
"loadMyVcs": "done.invoke.QrLogin.linkTransaction:invocation[0]"; | ||
"loadThumbprint": "FACE_VALID"; | ||
"resetLinkTransactionId": "GET"; | ||
"resetSelectedVoluntaryClaims": "GET"; | ||
"setClaims": "done.invoke.QrLogin.linkTransaction:invocation[0]"; | ||
"setConsentClaims": "TOGGLE_CONSENT_CLAIM"; | ||
"setLinkedTransactionId": "done.invoke.QrLogin.sendingAuthenticate:invocation[0]"; | ||
"setMyVcs": "STORE_RESPONSE"; | ||
"setScanData": "GET"; | ||
"setSelectedVc": "SELECT_VC"; | ||
"setThumbprint": "STORE_RESPONSE"; | ||
"setlinkTransactionResponse": "done.invoke.QrLogin.linkTransaction:invocation[0]"; | ||
}; | ||
eventsCausingDelays: { | ||
|
||
}; | ||
eventsCausingGuards: { | ||
"isConsentAlreadyCaptured": "done.invoke.QrLogin.sendingAuthenticate:invocation[0]"; | ||
}; | ||
eventsCausingServices: { | ||
"linkTransaction": "GET"; | ||
"sendAuthenticate": "STORE_RESPONSE"; | ||
"sendConsent": "CONFIRM"; | ||
}; | ||
matchesStates: "ShowError" | "done" | "faceAuth" | "invalidIdentity" | "linkTransaction" | "loadMyVcs" | "loadingThumbprint" | "requestConsent" | "sendingAuthenticate" | "sendingConsent" | "showvcList" | "success" | "waitingForData"; | ||
tags: never; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,45 @@ | ||
// This file was automatically generated. Edits will be overwritten | ||
|
||
export interface Typegen0 { | ||
'@@xstate/typegen': true; | ||
internalEvents: { | ||
'done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]': { | ||
type: 'done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'error.platform.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]': { | ||
type: 'error.platform.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]'; | ||
data: unknown; | ||
}; | ||
'xstate.init': {type: 'xstate.init'}; | ||
}; | ||
invokeSrcNameMap: { | ||
requestOtp: 'done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]'; | ||
requestRevoke: 'done.invoke.RevokeVids.requestingRevoke:invocation[0]'; | ||
}; | ||
missingImplementations: { | ||
actions: never; | ||
delays: never; | ||
guards: never; | ||
services: never; | ||
}; | ||
eventsCausingActions: { | ||
clearOtp: | ||
| 'DISMISS' | ||
| 'ERROR' | ||
| 'REVOKE_VCS' | ||
| 'done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]' | ||
| 'xstate.init'; | ||
logRevoked: 'STORE_RESPONSE'; | ||
revokeVID: 'SUCCESS'; | ||
setIdBackendError: 'error.platform.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]'; | ||
setOtp: 'INPUT_OTP'; | ||
setOtpError: 'ERROR'; | ||
setTransactionId: 'DISMISS' | 'REVOKE_VCS' | 'xstate.init'; | ||
setVIDs: 'REVOKE_VCS'; | ||
}; | ||
eventsCausingDelays: {}; | ||
eventsCausingGuards: {}; | ||
eventsCausingServices: { | ||
requestOtp: never; | ||
requestRevoke: 'INPUT_OTP'; | ||
}; | ||
matchesStates: | ||
| 'acceptingOtpInput' | ||
| 'acceptingVIDs' | ||
| 'acceptingVIDs.idle' | ||
| 'acceptingVIDs.requestingOtp' | ||
| 'idle' | ||
| 'invalid' | ||
| 'invalid.backend' | ||
| 'invalid.otp' | ||
| 'loggingRevoke' | ||
| 'requestingRevoke' | ||
| 'revokingVc' | ||
| {acceptingVIDs?: 'idle' | 'requestingOtp'; invalid?: 'backend' | 'otp'}; | ||
tags: never; | ||
} | ||
// This file was automatically generated. Edits will be overwritten | ||
|
||
export interface Typegen0 { | ||
'@@xstate/typegen': true; | ||
internalEvents: { | ||
"done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]": { type: "done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"error.platform.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]": { type: "error.platform.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]"; data: unknown }; | ||
"xstate.init": { type: "xstate.init" }; | ||
}; | ||
invokeSrcNameMap: { | ||
"requestOtp": "done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]"; | ||
"requestRevoke": "done.invoke.RevokeVids.requestingRevoke:invocation[0]"; | ||
}; | ||
missingImplementations: { | ||
actions: never; | ||
delays: never; | ||
guards: never; | ||
services: never; | ||
}; | ||
eventsCausingActions: { | ||
"clearOtp": "DISMISS" | "ERROR" | "REVOKE_VCS" | "done.invoke.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]" | "xstate.init"; | ||
"logRevoked": "STORE_RESPONSE"; | ||
"revokeVID": "SUCCESS"; | ||
"setIdBackendError": "error.platform.RevokeVids.acceptingVIDs.requestingOtp:invocation[0]"; | ||
"setOtp": "INPUT_OTP"; | ||
"setOtpError": "ERROR"; | ||
"setTransactionId": "DISMISS" | "REVOKE_VCS" | "xstate.init"; | ||
"setVIDs": "REVOKE_VCS"; | ||
}; | ||
eventsCausingDelays: { | ||
|
||
}; | ||
eventsCausingGuards: { | ||
|
||
}; | ||
eventsCausingServices: { | ||
"requestOtp": never; | ||
"requestRevoke": "INPUT_OTP"; | ||
}; | ||
matchesStates: "acceptingOtpInput" | "acceptingVIDs" | "acceptingVIDs.idle" | "acceptingVIDs.requestingOtp" | "idle" | "invalid" | "invalid.backend" | "invalid.otp" | "loggingRevoke" | "requestingRevoke" | "revokingVc" | { "acceptingVIDs"?: "idle" | "requestingOtp"; | ||
"invalid"?: "backend" | "otp"; }; | ||
tags: never; | ||
} | ||
|
Oops, something went wrong.