ai_api / src /lib /oauth /providers /cursor.ts
Yogesh
initial deploy
cd8bd0a
Raw
History Blame Contribute Delete
370 Bytes
import { CURSOR_CONFIG } from "../constants/oauth";
export const cursor = {
config: CURSOR_CONFIG,
flowType: "import_token",
mapTokens: (tokens) => ({
accessToken: tokens.accessToken,
refreshToken: null,
expiresIn: tokens.expiresIn || 86400,
providerSpecificData: {
machineId: tokens.machineId,
authMethod: "imported",
},
}),
};