feat(OAuth): enhance OAuth user handling and add localized messages
All checks were successful
Deploy to production / deploy (push) Successful in 2m4s
All checks were successful
Deploy to production / deploy (push) Successful in 2m4s
This commit is contained in:
@@ -106,7 +106,7 @@ class AuthController {
|
||||
}
|
||||
|
||||
async oauthUserStart(req, res) {
|
||||
const { userid: hashedUserId } = req.headers;
|
||||
const hashedUserId = req.headers.userid || req.query.userid;
|
||||
const { provider } = req.params;
|
||||
try {
|
||||
const User = (await import('../models/community/user.js')).default;
|
||||
@@ -127,7 +127,7 @@ class AuthController {
|
||||
}
|
||||
|
||||
async oauthUserExchange(req, res) {
|
||||
const { userid: hashedUserId } = req.headers;
|
||||
const hashedUserId = req.headers.userid || req.query.userid;
|
||||
const { code, state } = req.body;
|
||||
try {
|
||||
const User = (await import('../models/community/user.js')).default;
|
||||
|
||||
Reference in New Issue
Block a user