rawrool / Group7_SmartGarden

CECS 491a Project - Group 7 Smart Garden. Team Members: Raul Herrera, Jason Shortino, Arjun Chawla, Jose Hernandez.
0 stars 1 forks source link

create authentication for the API #39

Closed JosetheJedi closed 5 years ago

JosetheJedi commented 5 years ago

redesigned the api to log the user in and when the user makes post and get requests, it save the name of the user based on the JSON webtoken and only returns the information that belongs to that user.

took about 4 hours to make the api take in jwt as input instead of the username and to update the database to hold the jwt.