Synchronize users between Firebase and Winter.Users.
First install the plugin with composer:
composer require norotaro/wn-firebaseusers-pluginThen run the migration files with:
php artisan winter:upAfter configure Firebase Plugin you can run the following command for synchronize user:
php artisan firebaseusers:syncYou can use the AuthenticationControl middleware for protect an endpoint, this middleware expect a valid bearer token that is verified against Firebase.
<?php
Route::middleware([\Norotaro\FirebaseUsers\Middlewares\AuthenticationControl::class])
->group(function () {
// All routes here will require a valid Firebase bearer token
});This plugin adds fb_uid and fb_sync columns on users table, and also change the definition of the email column to allow null values and remove the unique restriction.
FirebaseUsers for WinterCMS is licensed under the MIT License.
Your use of Firebase is governed by the Terms of Service for Firebase Services.