access-token.ts 321 B

12345678910111213141516
  1. import type { Scope } from '@growi/core/dist/interfaces';
  2. export type IAccessTokenInfo = {
  3. expiredAt: Date,
  4. description: string,
  5. scopes: Scope[],
  6. }
  7. export type IResGenerateAccessToken = IAccessTokenInfo & {
  8. token: string,
  9. _id: string,
  10. }
  11. export type IResGetAccessToken = IAccessTokenInfo & {
  12. _id: string,
  13. }