bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Help with error using JWT? #1051

Open drdal opened 1 year ago

drdal commented 1 year ago

Error: Uncaught Exception: Unable to sign data. in .../vendor/bshaffer/oauth2-server-php/src/OAuth2/Encryption/Jwt.php:156

Warning: openssl_sign(): Supplied key param cannot be coerced into a private key in .../vendor/bshaffer/oauth2-server-php/src/OAuth2/Encryption/Jwt.php on line 155

Maybe a problem with PHP 8.1?