aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/typings/models/oauth/oauth-token.ts
blob: 105ea3df3655592f725d60bd4522e3de1549b8c7 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                        
import { OAuthTokenModel } from '@server/models/oauth/oauth-token'
import { PickWith } from '@server/typings/utils'
import { MUserAccountUrl } from '@server/typings/models'

export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'>

export type MOAuthTokenUser = MOAuthToken &
  PickWith<OAuthTokenModel, 'User', MUserAccountUrl> &
  { user?: MUserAccountUrl }