Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 675 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 675 Bytes

PHP implementation of JWT

PHP implementation of JWT for VueJs application

DB

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `created_ad` varchar() default now(),  
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

id and username fields should be pretty straight forward. The password field has to be generated using the [password_hash()](https://php.net/manual/en/ref .password.php) function in PHP

You can generate hash here, for example