Our great sponsors
-
effortless-hs256-jwt
Listen, JWT doesn't need to be awful. You want an HMAC SHA256 shared secret style JWT? Create, read, update, validate, and revoke with project specific config file looked for in common configuration locations.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You have an odd construct signature (secret, configPath, dsn, dbuser, dbpass) with 4 parameters from the config, the config file being #2? Then you have 3 methods of setting the config. Then the config keys don't match the config property or the called method
This is similar to how this library does it - https://github.com/tuupola/slim-jwt-auth
Related posts
- New year, new project? Swoole requests compatible with PSR-7/15 using a function
- New year, new project? 😎 Make Swoole HTTP requests compatible with PSR-7 & PSR-15 using a single function call
- What are the more unknown frameworks you ever used?
- str_replace special chars
- Create personal access tokens like GitHub with Azure B2C?