mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
Move ProviderEnum and PassportProfile to web/auth/utils.ts
These two are directly related with auth stuff and seem to fit much better there. Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
4e7c82dc3b
commit
5852b45bdd
6 changed files with 30 additions and 31 deletions
|
@ -1,6 +1,6 @@
|
|||
import { InternalOAuthError, Strategy as OAuth2Strategy } from 'passport-oauth2'
|
||||
import { config } from '../../../config'
|
||||
import { PassportProfile, ProviderEnum } from '../../../models/user'
|
||||
import { PassportProfile, ProviderEnum } from '../utils'
|
||||
|
||||
function extractProfileAttribute (data, path: string): string {
|
||||
// can handle stuff like `attrs[0].name`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue