Types and lint fixes in lib/web/auth

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-24 18:38:24 +02:00
parent 762e58b0d4
commit d925b0cc5f
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
4 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import { InternalOAuthError, Strategy as OAuth2Strategy } from 'passport-oauth2'
import { config } from '../../../config'
import { Profile, ProviderEnum } from '../../../models/user'
function extractProfileAttribute (data, path: string): any {
function extractProfileAttribute (data, path: string): string {
// can handle stuff like `attrs[0].name`
const pathArray = path.split('.')
for (const segment of pathArray) {