MCPcopy Create free account
hub / github.com/Rello/analytics / isShareAuthenticated

Method isShareAuthenticated

lib/DataSession.php:24–30  ·  view source on GitHub ↗
(string $token, string $passwordHash)

Source from the content-addressed store, hash-verified

22 }
23
24 public function isShareAuthenticated(string $token, string $passwordHash): bool
25 {
26 $this->removeLegacyPassword($token);
27 $storedFingerprint = $this->getValue('analytics-share-auth', $token);
28 return $storedFingerprint !== null
29 && hash_equals($storedFingerprint, hash('sha256', $passwordHash));
30 }
31
32 protected function getValue(string $key, string $token): ?string
33 {

Callers 2

hasShareAccessMethod · 0.80
readPublicMethod · 0.80

Calls 2

removeLegacyPasswordMethod · 0.95
getValueMethod · 0.95

Tested by

no test coverage detected