简体   繁体   English

如何使用google凭据在feathers js中创建用户

[英]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 ://www.npmjs.com/package/@react-oauth/google 这给了我谷歌凭据

https://docs.feathersjs.com/cookbook/authentication/google.html#application-client-and-secret this shows only how to setup but doesnt show how to use https://docs.feathersjs.com/cookbook/authentication/google.html#application-client-and-secret这仅显示如何设置但不显示如何使用

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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