Closed ciriousjoker closed 3 years ago
Hi @CiriousJoker, which version of the plugin are you using?
And do you have a link for the website that I can have a look at?
@dalenguyen
v2.18 (afaik newest at time of writing).
I sent you an email with the url and a couple of logins. I'm afraid I can't share such info on a public git issue.
Moved to email support.
It's working now.
The issue was an incompatibility between JWT Auth & Integrate Firebase PRO. This was fixed by whitelisting the necessary endpoint in JWT Auth.
In my case I had to move the filter code into its own plugin as suggested by the JWT Auth readme:
./myplugin/index.php
myplugin.zip
& activate itCode
/**
* Fix compatibility between JWT Auth & Integrate Firebase PRO
* Related Links:
* - https://wordpress.org/plugins/jwt-auth/
* - https://firebase.dalenguyen.me/
* - https://github.com/dalenguyen/firebase-wordpress-plugin/issues/180
* - https://github.com/usefulteam/jwt-auth/issues/41
*/
add_filter( 'jwt_auth_whitelist', function ( $endpoints ) {
$your_endpoints = array(
'/wp-json/firebase/v2/*',
);
return array_unique( array_merge( $endpoints, $your_endpoints ) );
});
@CiriousJoker Awesome. I'm glad that it works!
Is your feature request related to a problem? Please describe. We have a mobile app (Flutter) and a website (Wordpress).
Describe the solution you'd like
Describe alternatives you've considered
Which fields does it relate to? Firebase Auth