Skip to content

porcelanosa/php-jwt-vuejs

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published