Skip to content

Argument 1 passed to Firebase\JWT\JWT::encode() must be of the type array, string given, called in #422

Closed
@prakash-bbsr

Description

@prakash-bbsr

Hi Support,
Sudden, We are facing the below issue in a server:-
Argument 1 passed to Firebase\JWT\JWT::encode() must be of the type array, string given, called in (/var/www/html/newstudio/vendor/firebase/php-jwt/src/JWT.php:184)

We are just using the below line:-
$payload={"user_id":"2608","email":"siapos@yopmail.com","studio_id":"9247","password":"siapos123"};
define('JWTKEY', 'xyz123!');
$muvi5_token=JWT::encode($payload,JWTKEY,'HS256');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions