usefulteam / jwt-auth

WordPress JSON Web Token Authentication
https://wordpress.org/plugins/jwt-auth/
122 stars 48 forks source link

Fixed Auth and Devices class methods cannot be accessed from integration plugins. #34

Closed sun closed 2 years ago

sun commented 3 years ago

Problem

Cause

Proposed solution

  1. Convert the class JWTAuth\Setup into a singleton, so that JWTAuth\Setup::getInstance() allows access to the instantiated classes.

Notes

sun commented 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?

contactjavas commented 2 years ago

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.