Skip to content

Commit a5e1e06

Browse files
committed
ts: lib/auth/google/index.js
1 parent 2b582ce commit a5e1e06

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

lib/auth/google/index.js renamed to lib/auth/google/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
'use strict'
1+
import {Router} from "express";
2+
import * as passport from "passport";
3+
import {Strategy as GoogleStrategy} from "passport-google-oauth20";
24

3-
const Router = require('express').Router
4-
const passport = require('passport')
5-
var GoogleStrategy = require('passport-google-oauth20').Strategy
6-
const config = require('../../config')
7-
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
5+
import * as config from "../../config";
6+
import {passportGeneralCallback, setReturnToFromReferer} from "../utils";
87

98
const googleAuth = module.exports = Router()
109

package-lock.json

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"@types/express-flash": "0.0.2",
115115
"@types/minio": "^7.0.7",
116116
"@types/node": "~12.20.15",
117+
"@types/passport-google-oauth20": "^2.0.8",
117118
"@types/qs": "^6.9.6",
118119
"acorn": "~6.1.1",
119120
"babel-core": "~6.26.3",

0 commit comments

Comments
 (0)