Back
cosmo logo

2022

Overview

Create a new Next.js app and use the JWT plugin for wordpress to create an authentication login request.

Next we had to retrieve results from the API we used, in this case it was the Harry Potter API. When the user clicked on the specific character they would be directed to a character specific page.

We also had to create the login form with username and password inputs. We had to make a request to the Wordpress JWT plugin and if the login was successful we would redirect the user to the "Admin" page.

Another option was for us to create a favorites button for each character and if this was clicked it would toggle the result in/out of the favorites array and display the results on a page called favorites.