【发布时间】:2020-09-19 05:51:06
【问题描述】:
我点击此链接以允许我的用户通过 google 进行身份验证:
https://dev.to/jorgecf/integrating-google-authentication-with-your-angular-app-4j2a
但是,我的 UI 代码中必须包含我的 Google 客户端 ID:
return pload.then(async () => {
await gapi.auth2
.init({ client_id: 'abc123' }) // Put my client ID here. How should I store this?
.then(auth => {
this.gapiSetup = true;
this.authInstance = auth;
});
});
这是一个安全问题吗?如果是这样,我将在哪里/如何存储它?
【问题讨论】:
标签: angular typescript oauth-2.0 google-oauth