PHPackages                             norotaro/wn-firebaseusers-plugin - 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. norotaro/wn-firebaseusers-plugin

ActiveWinter-plugin

norotaro/wn-firebaseusers-plugin
================================

v1.1.2(4y ago)2102MITPHP

Since Sep 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/norotaro/wn-firebaseusers-plugin)[ Packagist](https://packagist.org/packages/norotaro/wn-firebaseusers-plugin)[ Docs](https://github.com/norotaro/wn-firebaseusers-plugin)[ RSS](/packages/norotaro-wn-firebaseusers-plugin/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (8)Used By (0)

Firebase for WinterCMS
======================

[](#firebase-for-wintercms)

Synchronize users between Firebase and `Winter.Users`.

- [Installation](#installation)
- [Usage](#usage)
    - [Protect endpoints](#protect-endpoints)
- [Users table modifications](#users-table-modifications)
- [Support](#support)
- [License](#license)

Installation
------------

[](#installation)

First install the plugin with composer:

```
composer require norotaro/wn-firebaseusers-plugin
```

Then run the migration files with:

```
php artisan winter:up
```

Usage
-----

[](#usage)

After configure [Firebase Plugin](https://github.com/norotaro/wn-firebase-plugin/#configuration) you can run the following command for synchronize user:

```
php artisan firebaseusers:sync
```

### Protect endpoints

[](#protect-endpoints)

You can use the `AuthenticationControl` middleware for protect an endpoint, this middleware expect a valid bearer token that is verified against Firebase.

```
