Closed sun closed 2 years ago
@contactjavas Did you have a chance to look into this? It's fairly simple change without visible effect. It is oaky if I proceed and merge it myself if you're fine with it?
Hi @sun , I'm sorry, unfortunately I'm still not able to to find the time to test PRs. Please merge it if you're confident with the changes.
Thanks for keeping the plugin active! I'd be happy to push update to the WP SVN at some point.
Problem
Cause
Proposed solution
JWTAuth\Setup
into a singleton, so thatJWTAuth\Setup::getInstance()
allows access to the instantiated classes.Notes
$auth
and$devices
properties public, we can also consider to add dedicatedSetup::getAuth()
andSetup::getDevices()
methods.