To manage the user tokens, use JWT library instead https://github.com/firebase/php-jwt that help encoding and decoding JSON Web tokens. https://github.com/Lifyzer/Food-Scanner-API-Backend/blob/28e56332c0e8cd3e5982b7b915c0d4c5d6131b58/FoodScanAppService.php#L121-L123
To manage the user tokens, use JWT library instead https://github.com/firebase/php-jwt that help encoding and decoding JSON Web tokens.
Food-Scanner-API-Backend/FoodScanAppService.php
Lines 121 to 123 in 28e5633