Oct 7, 2022
0
Level 1
Tymon/JWT not working if REDIS is configured
Iam using Tymon/JWT for authentication in my lumen project.All is working fine when Redis isn't configured. when Redis is configured for cache, am getting error for middleware routes(Redis hasn't been used in any of the files yet) like "Authorization Token not found".
Package used composer require predis/predis composer require illuminate/redis
config/database.php
'redis' => [
'cluster' => false,
'default' => [
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
],
],
bootstrap/app.php
$app->register(Illuminate\Redis\RedisServiceProvider::class);
$app->alias('redis', Illuminate\Support\Facades\Redis::class);
Please or to participate in this conversation.