Skip to content

Commit

Permalink
Rename otherReferenceIdFormats to olderReferenceIdFormats.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSAssassin committed Oct 18, 2023
1 parent dae2bf4 commit f1edb1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/suites.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export function getSuiteParams({config, suiteName}) {
let referenceId = 'assertionMethod';
let zcap = config.zcaps[referenceId];

// other possible reference ID formats to check for backwards compatibility
const otherReferenceIdFormats = [
// older reference ID formats to check for backwards compatibility
const olderReferenceIdFormats = [
'assertionMethod:Ed25519',
'assertionMethod:ed25519',
'assertionMethod:P-256'
];
if(!zcap) {
for(const referenceIdFormat of otherReferenceIdFormats) {
for(const referenceIdFormat of olderReferenceIdFormats) {
if(config.zcaps[referenceIdFormat]) {
referenceId = referenceIdFormat;
zcap = config.zcaps[referenceId];
Expand Down

0 comments on commit f1edb1e

Please sign in to comment.