[ad_1]
[ad_2]
I am building an app and dont really want to build a whole login/subscription system seeing as I already use WordPress for the blog I want to use some subscription/user management plugins to manage users so what is the best way to sync user login/signup in WordPress to my custom Python Flask App?

Is this a question? Or are we just shooting shit?
There are few subscription plugins available online for WordPress; and I will hook events on user data change from WordPress to make webhook calls to your custom app to sync data
Hi!
If you want to use WordPress for managing login, signup, and subscriptions while integrating with your custom Python Flask app, here’s a straightforward approach:
– JWT Authentication: Use a plugin like JWT Authentication for WP-API in WordPress. This plugin allows you to generate JWT tokens for user authentication. Your Flask app can then use these tokens to verify user sessions, providing a secure way to handle authentication across both platforms.
– WordPress REST API: Utilize the WordPress REST API for user management. You can perform actions like user registration, login, and subscription management directly through API calls from your Flask app. This way, you maintain centralized user data in WordPress while accessing it from your app.
– Sync User Data: Use plugins like WP REST API User Endpoints to extend the default capabilities of WordPress’s REST API, allowing more control over user data and operations. Your Flask app can communicate with WordPress via API requests to sync user information.
– OAuth 2.0: Consider using OAuth 2.0 for a more robust authentication setup. A plugin like WP OAuth Server can make WordPress act as an OAuth provider, allowing your Flask app to authenticate users through WordPress.
– Webhooks for Real-time Sync: Set up webhooks in WordPress to notify your Flask app of user-related events (like new signups or subscription changes). This ensures both systems stay in sync without needing constant polling.
These methods will allow you to leverage WordPress’s user management capabilities while integrating seamlessly with your Flask app. Let me know if you need more details or help setting this up!