SAP*_*ash 5 authentication oauth next.js
我一直在尝试使用 google OAuth 服务,但遇到了一个可怕的错误,这似乎根本不起作用。

如何正确解决这个问题?
对我来说,我必须编辑我的 /etc/hosts 文件夹
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 test.cc
Run Code Online (Sandbox Code Playgroud)
localhost:3000然后在本地运行而不是dev test.cc:3000。当然,test.cc 是一个任意名称,您可以随意命名。
完成此操作后,将该域作为授权域提交到您的 OAuth 同意屏幕上。
| 归档时间: |
|
| 查看次数: |
4724 次 |
| 最近记录: |