Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong number of segments #2140

Open
zkenstein opened this issue Jul 7, 2021 · 1 comment
Open

Wrong number of segments #2140

zkenstein opened this issue Jul 7, 2021 · 1 comment

Comments

@zkenstein
Copy link

zkenstein commented Jul 7, 2021

Tried this on SSL but return wrong number of segments. Any clue?

my middleware:

public function handle($request, Closure $next)
 {
     try {			
         // $token = JWTAuth::getToken(); 			
         $token = JWTAuth::getToken(); 			
         $getData = JWT::decode((string)$token, env('JWT_SECRET'), ['HS256']);
 		
         if ($getData) {
             return $next($request);
 			
         }
         else {
             return response()->json([
                 'success' => 0,
                 'login' => 1,
                 'message' => ['Client not found'],
             ], 403);
         }

     }
     catch (\Exception $e) {
         return response()->json([
             'success' => 0,
             'login' => 1,
             'message' => [$e->getMessage()],
         ], 403);
     }
 	
 }
@zkenstein
Copy link
Author

After enabling modules on apache, it return the Algorithm not allowed. What I am dong wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant