Lon*_*ith 5 php google-api oauth-2.0
我有一个基于本教程https://www.sanwebe.com/2012/11/login-with-google-api-php的谷歌签名按钮,效果很好。
我正在尝试添加状态参数,因此我添加了以下行:
$client->setState("testingthestate");
Run Code Online (Sandbox Code Playgroud)
这行代码添加到 URL 中:https://....&state=testingthestate
但我不知道如何恢复状态的价值。和$_GET['state']都是$_POST['state']空的!
如何取回状态参数值?