mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 16:58:28 +00:00
* Feat: add documents to the kg * Feat: add versioning to documents * Fix: invalidation of evolved facts * fix: mcp return * fix: invalidAt is not displayed in graph popover * Fix: use document id for the flow * refactor: consolidate document versioning around sessionId instead of documentId * fix: add docs link in welcome email * fix: give more time for larger graphs to settle on * bump: new version 0.1.20 --------- Co-authored-by: Manoj K <saimanoj58@gmail.com>
21 lines
454 B
TypeScript
21 lines
454 B
TypeScript
import type { User } from "~/models/user.server";
|
|
import { createWorkspace } from "~/models/workspace.server";
|
|
|
|
export async function postAuthentication({
|
|
user,
|
|
loginMethod,
|
|
isNewUser,
|
|
}: {
|
|
user: User;
|
|
loginMethod: User["authenticationMethod"];
|
|
isNewUser: boolean;
|
|
}) {
|
|
if (user.name && isNewUser && loginMethod === "GOOGLE") {
|
|
await createWorkspace({
|
|
name: user.name,
|
|
userId: user.id,
|
|
integrations: [],
|
|
});
|
|
}
|
|
}
|