mirror of
https://github.com/outline/outline.git
synced 2026-05-13 05:40:13 -05:00
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import ApiKey from "@server/models/ApiKey";
|
|
|
|
export default function presentApiKey(apiKey: ApiKey) {
|
|
return {
|
|
id: apiKey.id,
|
|
userId: apiKey.userId,
|
|
name: apiKey.name,
|
|
scope: apiKey.scope,
|
|
value: apiKey.value,
|
|
last4: apiKey.last4,
|
|
createdAt: apiKey.createdAt,
|
|
updatedAt: apiKey.updatedAt,
|
|
expiresAt: apiKey.expiresAt,
|
|
lastActiveAt: apiKey.lastActiveAt,
|
|
};
|
|
}
|