Skip to content

Latest commit

 

History

History
8 lines (4 loc) · 568 Bytes

Week 06 - Offline Videos Assignment.md

File metadata and controls

8 lines (4 loc) · 568 Bytes

Week 06 - Offline Videos

Assignment #1 - Write a function that takes in a username and password and returns a JWT token with the username encoded. Should return null if the username is not a valid email or if the password is less than 6 characters. Try using the zod library here

Assignment #2 - Write a function that takes a jwt as input and returns true if the jwt can be DECODED (not verified). Return false otherwise

Assignment #3 - Write a function that takes a jwt as input and returns true if the jwt can be VERIFIED. Return false otherewise