Open NaeemMarzu opened 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()",
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()",