PHPackages                             baka/auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. baka/auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

baka/auth
=========

Baka Component for user authentification

v0.2.5.5(6y ago)07.9k3[3 issues](https://github.com/bakaphp/auth/issues)1MITPHPPHP &gt;=7.2

Since Nov 26Pushed 6y ago5 watchersCompare

[ Source](https://github.com/bakaphp/auth)[ Packagist](https://packagist.org/packages/baka/auth)[ RSS](/packages/baka-auth/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (9)Versions (28)Used By (1)

Baka Auth
=========

[](#baka-auth)

MC Auth Library to avoid having to redo a user signup flow for apps.

Testing
-------

[](#testing)

```
codecept run
```

JWT
---

[](#jwt)

Add JWT to your configuration

```
'jwt' => [
    'secretKey' => getenv('JWT_SECURITY_HASH'),
    'expirationTime' => '1 hour', #strtotime
    'payload' => [
        'exp' => 1440,
        'iss' => 'phalcon-jwt-auth',
    ],
    'ignoreUri' => [
        'regex:auth',
        'regex:webhook',
        'regex:/users',
    ],
],
```

Database
--------

[](#database)

We use phinx for migration , to update this project db structure just run

`vendor/bin/phinx-migrations generate`

To run this migration from your project just add the path of the db location to your phinx.php path

```
