diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-29 23:48:47 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-29 23:48:47 -0400 |
| commit | ff4e19b5dde820cf84bf38bfd346148417b321e6 (patch) | |
| tree | 55819a6467535bca9371d4d19cea9266ab4d9ac0 /src/server/authentication/config | |
| parent | 32abf9df5e29b8de49c6d484108f3e2daeda3fb6 (diff) | |
| parent | a1dc1ec6e17d27fd70b7dca84ebea03b01727920 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/server/authentication/config')
| -rw-r--r-- | src/server/authentication/config/passport.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/authentication/config/passport.ts b/src/server/authentication/config/passport.ts index f69b274d3..8b20d29b1 100644 --- a/src/server/authentication/config/passport.ts +++ b/src/server/authentication/config/passport.ts @@ -42,7 +42,7 @@ export let isAuthorized = (req: Request, res: Response, next: NextFunction) => { const provider = req.path.split("/").slice(-1)[0]; if (req.user) { - if (_.find(req.user.tokens, { kind: provider })) { + if (_.find((req.user as any).tokens, { kind: provider })) { next(); } else { res.redirect(`/auth/${provider}`); |
