# Bravo-kernel/application-examples

**URL:** https://discourse.cakephp.org/t/bravo-kernel-application-examples/4513
**Category:** Need Help
**Created:** [July 4, 2018, 7:34pm UTC](https://discourse.cakephp.org/t/bravo-kernel-application-examples/4513 "2018-07-04T19:34:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vijay07roy](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vijay07roy](https://discourse.cakephp.org/u/vijay07roy)
#### Post date: [July 4, 2018, 7:34pm UTC](https://discourse.cakephp.org/t/bravo-kernel-application-examples/4513/1 "2018-07-04T19:34:24Z")

</div>

I have tried using this tutorial for creating jwt token. But many functions of friendofcrud plugin doesn’t work for me. I am using PHP 7.2 in the local server which says many of the functions are deprecated.

> **[bravo-kernel/application-examples](https://github.com/bravo-kernel/application-examples/tree/master/blog-how-to-add-jwt-authentication-to-a-cakephp-3-rest-api)**
>
> Contribute to bravo-kernel/application-examples development by creating an account on GitHub.

[http://www.bravo-kernel.com/2015/04/how-to-add-jwt-authentication-to-a-cakephp-3-rest-api/](http://www.bravo-kernel.com/2015/04/how-to-add-jwt-authentication-to-a-cakephp-3-rest-api/)

Can anyone help how to use CakePHP crud instead of the plugin.

---

<div class="post-metadata">

### Author: ![Diego](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/diego/32/296_2.png) [@Diego](https://discourse.cakephp.org/u/Diego)
#### Post date: [July 5, 2018, 12:58pm UTC](https://discourse.cakephp.org/t/bravo-kernel-application-examples/4513/2 "2018-07-05T12:58:14Z")

</div>

whats your cakephp version? You need fix the deprecated functions with migration guide:  
[https://book.cakephp.org/3.0/en/appendices/3-x-migration-guide.html](https://book.cakephp.org/3.0/en/appendices/3-x-migration-guide.html)

example:

```
$this->loadComponent('Auth', [
            'storage' => 'Memory',
            'authenticate' => [
                'Form' => [
                    'scope' => ['Users.active' => 1] //this is deprecated
                ],
```

---

<div class="post-metadata">

### Author: ![vijay07roy](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vijay07roy](https://discourse.cakephp.org/u/vijay07roy)
#### Post date: [July 6, 2018, 1:20pm UTC](https://discourse.cakephp.org/t/bravo-kernel-application-examples/4513/3 "2018-07-06T13:20:02Z")

</div>

I am using Cakephp version 3.6
