sizeg / yii2-jwt

A simple Yii2 component to work with JSON Web Token and JSON Web Signature
https://jwt.io/
196 stars 85 forks source link

"Calling unknown method: sizeg\\jwt\\Jwt::decode()", #47

Open NaeemMarzu opened 1 year ago

NaeemMarzu commented 1 year ago

when i use this

public static function findIdentityByAccessToken($token, $type = null) { $data = Yii::$app->jwt->decode($token); if (!empty($data['id'])) { return static::findOne(['access_token' => $data['id']]); } return null; }

i got "Calling unknown method: sizeg\jwt\Jwt::decode()",