hyperf-ext / auth Goto Github PK
View Code? Open in Web Editor NEWThe Hyperf Auth package.
License: MIT License
The Hyperf Auth package.
License: MIT License
Entry "HyperfExt\Auth\UserProviders\ModelUserProvider" cannot be resolved: Parameter $options of __construct() has no value defined or guessable\nFull definition:\nObject[HyperfExt\Auth\UserProviders\ModelUserProvider
能否尽快完善文档呢?不然使用起来总觉得不是很方便
如题
刷新时应该把payload里面的guard加进去
好像目前还不支持PHP8的注解形式
为什么不完善文档?
Using version ^2.1 for hyperf-ext/auth
./composer.json has been updated
Running composer update hyperf-ext/auth
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires hyperf-ext/auth ^2.1 -> satisfiable by hyperf-ext/auth[v2.1.0].
- hyperf-ext/auth v2.1.0 requires hyperf/command ~2.1.0 -> found hyperf/command[v2.1.0-beta1, v2.1.0, 2.1.x-dev] but it conflicts with your root composer.json require (~2.2.0).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
官方 3.0 版本即将发布了. 是否考虑进行适配
hyperf2.2出来啦,能否支持一下
/**
* @Inject
* @var AuthManager
*/
protected $auth;
public function createToken(): string
{
$user = MemberAuth::find(1);
$this->auth->guard('api')->attempt($user);
}
我使用后报如下错误:
InvalidArgumentException: The hashing driver config jwt is invalid.
这是我的auth.php:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.