WordPress login with Firebase JWT

  • The Firebase JWT Login feature simplifies the seamless login for your users. Do you have multiple applications where your users login with the same Firebase credentials? A user has already logged in to the mobile application and when redirected to your WordPress site, does he need to login again?

  • You just need to pass the Firebase JWT token of that user in the URL, when you are redirecting them to your WordPress site from the external app. This eliminates the need for users to enter their login credentials once again on your WordPress site, ensuring a seamless and secure login experience.

  • When using Firebase JWT Login, you need to provide a Firebase JWT token in the URL from your application when redirecting the user to your WordPress site. This token will be validated, and the user will be granted access to the site. This feature is a great way to ensure a secure and fast login experience for your users, eliminating the need for them to remember their login credentials and enter them manually every time they log in into your WordPress site.

How to configure?

<wordpress-site-url>.com/?fb_jwt=<Firebase JWT token>

In this Example, URL is:

https://example.com/?fb_jwt=eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1YzJiNDBhYTJmMzIyNzk4NjY2YTZiMzMyYWFhMDNhNjc3MzAxOWIiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vZmlyZXN0b3JlLTI4ZDRmIiwiYXVkIjoiZmlyZXN0b3JlLTI4ZDRmIiwiYXV0aF90aW1lIjoxNjc3MTM0Mjc5LCJ1c2VyX2lkIjoiNW5kaDNoM3huT2VldExlYmdBNllHeXUwQnl2MiIsInN1YiI6IjVuZGgzaDN4bk9lZXRMZWJnQTZZR3l1MEJ5djIiLCJpYXQiOjE2NzcxMzQyNzksImV4cCI6MTY3NzEzNzg3OSwiZW1haWwiOiJ0ZXN0QGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6eyJlbWFpbCI6WyJ0ZXN0QGdtYWlsLmNvbSJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.mlxsdTyo2LkSsGr39dvBVLx0MItDl0_ObVVLLx9AM8P3kinzPqWcmBZP6xA0WhChbkbJOrEl_LGXil-PIDXstHk8igl4zISClXxQRAKJwRxm4Be6G3iLQoN_qtQI2zfqMFYm7CioA2pY8cvRBzpqoNsizeDSfn05oGYgos75ITqT9dik2aTx4t7-DLEpW4RFfeYI2Kqp6o4xRPYzFHW74D744exbZ6-RWE9kifvU-s0q_Fe5QMhkUFFxTSD47AC8qSHmvKLnDDZB2-KJxU-0WzCOcA1MNa-eoxND18zOW3_a9LVnNRWb2l2p7_kJomq-Lr-AFfkCDBM66hGwbXZ6tw