简体   繁体   中英

How to use google credentials to create a user in feathers js

how do I use google credentials to decode and get the data I need and use it to register a user? Im using this component library: https://www.npmjs.com/package/@react-oauth/google which gives me the google credentials

https://docs.feathersjs.com/cookbook/authentication/google.html#application-client-and-secret this shows only how to setup but doesnt show how to use

您可以使用任何 JWT 解码器从凭证密钥(如https://www.npmjs.com/package/jwt-decode或任何包或您想解码的任何逻辑)获取用户信息

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