aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/oauth-model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/oauth-model.ts')
-rw-r--r--server/lib/oauth-model.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/lib/oauth-model.ts b/server/lib/oauth-model.ts
index 75aee2567..a2c53a2c9 100644
--- a/server/lib/oauth-model.ts
+++ b/server/lib/oauth-model.ts
@@ -1,20 +1,20 @@
1import * as express from 'express' 1import * as express from 'express'
2import * as LRUCache from 'lru-cache'
2import { AccessDeniedError } from 'oauth2-server' 3import { AccessDeniedError } from 'oauth2-server'
3import { logger } from '../helpers/logger'
4import { UserModel } from '../models/account/user'
5import { OAuthClientModel } from '../models/oauth/oauth-client'
6import { OAuthTokenModel } from '../models/oauth/oauth-token'
7import { LRU_CACHE, OAUTH_LIFETIME } from '../initializers/constants'
8import { Transaction } from 'sequelize' 4import { Transaction } from 'sequelize'
9import { CONFIG } from '../initializers/config' 5import { PluginManager } from '@server/lib/plugins/plugin-manager'
10import * as LRUCache from 'lru-cache' 6import { ActorModel } from '@server/models/activitypub/actor'
11import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token' 7import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
12import { MUser } from '@server/types/models/user/user' 8import { MUser } from '@server/types/models/user/user'
13import { UserAdminFlag } from '@shared/models/users/user-flag.model' 9import { UserAdminFlag } from '@shared/models/users/user-flag.model'
14import { createUserAccountAndChannelAndPlaylist } from './user'
15import { UserRole } from '@shared/models/users/user-role' 10import { UserRole } from '@shared/models/users/user-role'
16import { PluginManager } from '@server/lib/plugins/plugin-manager' 11import { logger } from '../helpers/logger'
17import { ActorModel } from '@server/models/activitypub/actor' 12import { CONFIG } from '../initializers/config'
13import { LRU_CACHE } from '../initializers/constants'
14import { UserModel } from '../models/account/user'
15import { OAuthClientModel } from '../models/oauth/oauth-client'
16import { OAuthTokenModel } from '../models/oauth/oauth-token'
17import { createUserAccountAndChannelAndPlaylist } from './user'
18 18
19type TokenInfo = { accessToken: string, refreshToken: string, accessTokenExpiresAt: Date, refreshTokenExpiresAt: Date } 19type TokenInfo = { accessToken: string, refreshToken: string, accessTokenExpiresAt: Date, refreshTokenExpiresAt: Date }
20 20