Do Frontity have JWT Feature, so we can build out Login forms and protected routes?
Which plugin are you planning to use? https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/ or https://github.com/WP-API/jwt-auth?
Maybe we could add a method in
source to add an
Authorization: Bearer header to all requests, once the user has logged in.
The first one,… but the developer is not very often updating the Plugin and also wp-plugin and git repo are not on the same version. Maybe a good idea would be for the Frontity Team to maybe fork this plugin and build out an own version of it and maintain it.
My ideas for Frontity - Currently Frontity is presented as Framework to build themes in React for WordPress, this is nice but now I will explain why I don’t like the way Frontity is currently built
In first place what Developers want to achieve with the Apps they build? Help others and make Money with the App. So to be able to make Money your App needs to have Authentication where Users can LogIn and use the App.
I think Frontity should take this path, To build an official Frontity Plugin for WodPress that is maintained by the Developer of Frontity and guarantees compatibility.
What this plugin should have?
- JWT-Authentication and build out functions to use it easy in Frontity Framework
- Maybe make Plugin Actions work on Frontend by creating some connection between Plugin > Frontity Plugin > React Frontend
- A way to interact with the MySQL database so our Node logic can create data for the db.
Their are a few more things I had in my mind but I forgot it now, in my opinion, the most important thing would be to have a Plugin by Frontity where Developers can rely on because currently Frontity is built less for Developers more for beginners and. Frontity should become more solution for creating apps where WordPress is used as the backend, and not see Frontity only as Theme framework, that would be cool. Thanks
Thanks for your comments. I’ve added JWT-Authentication to our roadmap and if more people start requesting it, we’ll push it up. Please bear in mind that right now we still working on some other core features and we have a lot of items in our roadmap so it may take a while.
But Frontity is open source, so if you cannot wait and want to work on an integration with the JWT Authentication for WP REST API plugin and create a Frontity package for that we will be more than glad to give you instructions on how to proceed and make the necessary changes to
wp-source in our code. I’ve taken a look and it doesn’t seem difficult.
If you want to collaborate let me know and I’ll explain you the next steps.
+1 for jwt integration (bearer auth)
I am using JWT Authentication for WP REST API
It would be really useful for us to understand what are you trying to build. Could you share with us your use case? At what point in the development are you right now?
Thanks in advance
@Pablo, I’m building a web app that allows drivers to request transport jobs. I need them to be able to log in and select a job and request it.
I have a pure react set up with log in with JWT and I’d love to have it available with Frontity.
@Pablo I’m building an app for requesting travel offers to travel agency(es).
Ideally, people can login (maybe Auth0 or other type of social login) and they’ll be able to manage their account (personal info, personal preferences, favorite agencies, CRUD of requests, etc)
The project just started. I have more experience developing Themes using Roots Sage. but I wanted to try Wordpress headless, using react more than PHP. I still need to learn a lot of notions of react and js ES6
I could verify that this plugin can be useful for your customers to authenticate to your React App, using JWT Authentication