Saturday, May 12, 2018

Verify Firebase ID Token Using Plain PHP Script Codes


1) Add PHP-JWT Library to your PHP project.

Use composer, or add the library manually.

To use composer, follow the guide here, https://firebase-php.readthedocs.io/en/latest/overview.html.

To add the library manually, download the php-jwt library from https://php-download.com/ .

For example, if you want to download version 4, (https://php-download.com/downloads/download?vendor=firebase&package=php-jwt&version=4.0.0.0&downloadType=REQUIRE)

Alternatively, you can download php-jwt library from here, (https://drive.google.com/open?id=1IHUWJQTKEy1hjKLyIICJj0ITBXaDNTkI ).

Unzip the package, find the folder php-jwt and copy the folder to your project.

the php-jwt is added to the project folder phpjwtdecode

2) Write the PHP script

filename: phpjwtdecode.php

3) Execute





FURTHER READING:
https://firebase-php.readthedocs.io/en/stable/authentication.html

1 comment:

  1. What to Make Money in Vegas with the Right Money - Work
    How 남양주 출장안마 can I make money 충주 출장마사지 on casino games? In a gambling world where casinos are known as the "high rollers", there 전주 출장샵 is no doubt that if you're looking หาเงินออนไลน์ to find some 안산 출장마사지

    ReplyDelete

Labels