How to use the @authx/authx/dist/util/explanations.match function in @authx/authx

To help you get started, we’ve selected a few @authx/authx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github the-control-group / authx / packages / interface / src / client / Authorize.tsx View on Github external
() =>
      explanations
        ? match(explanations, newRequestedScopes, {
            currentAuthorizationId: null,
            currentGrantId: grantId,
            currentUserId: userId,
            currentClientId: clientId
          })
        : [],
    [explanations, newRequestedScopes, clientId, grantId, userId]
github the-control-group / authx / packages / interface / src / client / Authorize.tsx View on Github external
() =>
      explanations && grantedScopes
        ? match(explanations, grantedScopes, {
            currentAuthorizationId: null,
            currentGrantId: grantId,
            currentUserId: userId,
            currentClientId: clientId
          })
        : [],
    [explanations, grantedScopes, clientId, grantId, userId]