Questions tagged [php-jwt]

A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519.

A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519.

This is used by Firebase for custom authentication token solutions.

21 questions
0
votes
0 answers

how to sign request in php with jwt with 3rd party rest api

I'm writing a code to authenticate or connect JWT rest API, but I'm unable to connect with that, I've prepared all the code, but it's still unsuccessful, I don't know what's the issue with it. I've generated the JWT token already. I don't know what…
0
votes
1 answer

JWT Token generated using firebase/php-jwt is showing as Invalid Token

I am using firebase/php-jwt for generating JWT Token using the following PHP Source Code
Akshay Khale
  • 8,151
  • 8
  • 50
  • 58
0
votes
1 answer

Codeigniter 4 Rest API - 301 Moved Permanently

I have Codeigniter 4 web app that run REST API with firebase/php-jwt on Laragon 5.0.0210523 environment that run Apache-2.4.47, PHP-8.1.7, and MongoDB-4.0.28. I followed a tutorial and it works fine both server REST API and it REST client. After day…
santo
  • 181
  • 8
0
votes
1 answer

Invalid token and 'Failed to parse json string'

I am creating a REST API using CI4. I want to create a auth filter and ran into a problem. When token is valid or not send, everything is fine. Problem is when I change the content of token before sending (add or remove a character) then instead of…
Lidia K.
  • 209
  • 3
  • 13
0
votes
0 answers

Nodejs Verify a JWT token generated by PHP JWT kit Error JsonWebTokenError: invalid signature

I am creating jwt token in my webserver with PHP jwt tool as below, $key = 'key'; $allowInfinity=true; //for mobile devices allow infinity if($allowInfinity===false) { $token = array( "iss" =>…
mahen3d
  • 7,047
  • 13
  • 51
  • 103
0
votes
1 answer

Decode firebase/php-jwt in Angular 6

I am using firebase/php-jwt in my Backend Api (Using Lumen) to serve Authentication Token. and I am using Angular 6 in Frontend. This is my result from backend after logged in : - { "message": "Successfully Authenticated !", "status":…
Fahim Uddin
  • 681
  • 2
  • 10
  • 36
1
2