Skip to content

Commit

Permalink
Merge pull request #78 from satish-mobtexting/hotfix-authentication-c…
Browse files Browse the repository at this point in the history
…orrection

fix: used bulitin function
  • Loading branch information
sankarsuda committed Feb 27, 2024
2 parents 91d9d49 + ed55e93 commit f8fb151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/Auth/Providers/AccessProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Diviky\Bright\Models\Token;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;

class AccessProvider implements UserProvider
Expand Down Expand Up @@ -58,7 +59,7 @@ public function retrieveByToken($identifier, $token)
[$id, $token] = explode('|', $token, 2);

if (!empty($id)) {
$id = last(explode(' ', $id));
$id = Arr::last(explode(' ', $id));
}

$instance = $this->token->remember(null, 'token:' . $id . $token)->find($id);
Expand Down

0 comments on commit f8fb151

Please sign in to comment.