Handle reconnect events for websocket errors

This commit is contained in:
Dane Everitt 2020-11-03 20:33:05 -08:00
parent 910a2d7a23
commit c4df534722
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 8 additions and 3 deletions

View file

@ -55,7 +55,7 @@ class NodeJWTService
$builder = (new Builder)->issuedBy(config('app.url'))
->permittedFor($node->getConnectionAddress())
->identifiedBy(hash('sha256', $identifiedBy), true)
->identifiedBy(md5($identifiedBy), true)
->issuedAt(CarbonImmutable::now()->getTimestamp())
->canOnlyBeUsedAfter(CarbonImmutable::now()->subMinutes(5)->getTimestamp());