mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
17 lines
579 B
TypeScript
17 lines
579 B
TypeScript
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,
|
|
};
|
|
}
|