kreait / laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

Home Page:https://github.com/kreait/firebase-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$auth->createCustomToken($signInResult->uid); returns {}

salar-rastari opened this issue · comments

Hi

I'm using Laravel 9 and trying to get a custom token but it returns empty JSON {}
this is what I'm using:

$auth = $factory->createAuth();
$signInResult = $auth->getUserByPhoneNumber('+123456789');
$customToken = $auth->createCustomToken($signInResult->uid);

Thanks.

Same Issue here