import { Injectable } from '@nestjs/common' import { BearerAuthorizationGuard } from './bearer_authorization.guard' @Injectable() export class ThirdPartyAuthorizationGuard extends BearerAuthorizationGuard { protected checkToken(token: string): boolean { const tokens = Object.values(globalThis.secret.third_party_tokens) return tokens.includes(token) } }