ohmyform-api/src/dto/auth/auth.jwt.model.ts
2021-05-02 12:43:54 +02:00

16 lines
335 B
TypeScript

import { Field, ObjectType } from '@nestjs/graphql'
@ObjectType('AuthToken')
export class AuthJwtModel {
@Field()
readonly accessToken: string
@Field()
readonly refreshToken: string
constructor(partial: Partial<AuthJwtModel>) {
this.accessToken = partial.accessToken
this.refreshToken = partial.refreshToken
}
}