mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-09 14:29:08 +00:00
FIX: google-oauth redirect_uri fixed
This commit is contained in:
@@ -41,11 +41,9 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
|
||||
}
|
||||
|
||||
authenticate(req, options) {
|
||||
if (req.route.path.includes('callback')) {
|
||||
return super.authenticate(req, options);
|
||||
}
|
||||
|
||||
const plugin: string = req.route.path.replace('/oauth/', '');
|
||||
const plugin: string = req.route.path
|
||||
.replace('/oauth/', '')
|
||||
.replace('/callback', '');
|
||||
|
||||
const { customer_id } = req.query;
|
||||
options.scope = ['https://www.googleapis.com/auth/userinfo.email'];
|
||||
|
||||
Reference in New Issue
Block a user