Skip to content

Commit

Permalink
validation commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
nataschaberg committed Feb 18, 2019
1 parent 1c6c45a commit a61be43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/sso/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ interface AttributeSummary {

export const consumeCredentialRequest = (decodedCredentialRequest: JSONWebToken<CredentialRequest>) => {
return async (dispatch: Dispatch<AnyAction>, getState: Function, backendMiddleware: BackendMiddleware) => {
const { storageLib, identityWallet } = backendMiddleware
const { storageLib } = backendMiddleware
const { did } = getState().account.did.toJS()

try {
await identityWallet.validateJWT(decodedCredentialRequest)
// await identityWallet.validateJWT(decodedCredentialRequest)
const requestedTypes = decodedCredentialRequest.interactionToken.requestedCredentialTypes
const attributesForType = await Promise.all<AttributeSummary>(requestedTypes.map(storageLib.get.attributesByType))

Expand Down

0 comments on commit a61be43

Please sign in to comment.