Skip to content

Commit

Permalink
Merge pull request #31 from magento-cia/MC-32830
Browse files Browse the repository at this point in the history
MC-32830: Do not store admin and customer tokens in DB
  • Loading branch information
dvoskoboinikov authored May 27, 2021
2 parents 7b4d36e + 036fea1 commit e4aea96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function testAuthenticateValidRequest()
'abc'
);

self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $result);
self::assertNotEmpty($result);
}

/**
Expand Down Expand Up @@ -290,7 +290,7 @@ public function testCreateTokenWithOneTouch()
Bootstrap::ADMIN_PASSWORD
);

self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $result);
self::assertNotEmpty($result);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function testVerifyValidRequest()
$signature
);

self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $token);
self::assertNotEmpty($token);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function testVerifyValidRequest()
Bootstrap::ADMIN_PASSWORD,
json_encode($verifyData)
);
self::assertMatchesRegularExpression('/^[a-z0-9]{32}$/', $token);
self::assertNotEmpty($token);
}

/**
Expand Down

0 comments on commit e4aea96

Please sign in to comment.