php laravel jwt权限验证

JWT 完整使用详解
https://learnku.com/articles/10885/full-use-of-jwt

在auth验证的时候jwt默认的加密方式不是md5,现在简单的修改为md5
Laravel 的 Auth::attempt () 初探及修改 bcrypt 验证为 MD5
https://learnku.com/articles/5963/toggle-laravel-login-default-bcrypt-encryption-validation

跟着上面的教程先把jwt安装好
通过login获取到token
在这里插入图片描述

使用的时候把token放到authoauthoriz中的bearer token中即可请求其他接口
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/helloworld_dream/article/details/88669855