简体   繁体   中英

How can I verify user's Google Token ID with PHP?

I want to let my user log in on my website using his Google Account. I know that using this function on JS you can get a Token ID:

var id_token = googleUser.getAuthResponse().id_token;

How to verify that his token is ok using PHP? I can't find something to help me.

您应该使用“知名商品”或“ 信赖方认证图书馆,而不要按照@Honsa Stunna的建议重新发明轮子。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM