Ctrl K
ComunidadGuías…

server/presenters/oauthAuthentication.ts

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
import type { OAuthAuthentication } from "@server/models";
import { presentPublishedOAuthClient } from "./oauthClient";

export default function presentOAuthAuthentication(
  oauthAuthentication: OAuthAuthentication
) {
  return {
    id: oauthAuthentication.id,
    userId: oauthAuthentication.userId,
    oauthClientId: oauthAuthentication.oauthClientId,
    oauthClient: presentPublishedOAuthClient(oauthAuthentication.oauthClient),
    scope: oauthAuthentication.scope,
    lastActiveAt: oauthAuthentication.lastActiveAt,
    createdAt: oauthAuthentication.createdAt,
  };
}