aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/oauth/oauth-token.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/typings/models/oauth/oauth-token.ts')
-rw-r--r--server/typings/models/oauth/oauth-token.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/typings/models/oauth/oauth-token.ts b/server/typings/models/oauth/oauth-token.ts
new file mode 100644
index 000000000..105ea3df3
--- /dev/null
+++ b/server/typings/models/oauth/oauth-token.ts
@@ -0,0 +1,9 @@
1import { OAuthTokenModel } from '@server/models/oauth/oauth-token'
2import { PickWith } from '@server/typings/utils'
3import { MUserAccountUrl } from '@server/typings/models'
4
5export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'>
6
7export type MOAuthTokenUser = MOAuthToken &
8 PickWith<OAuthTokenModel, 'User', MUserAccountUrl> &
9 { user?: MUserAccountUrl }