mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 20:01:36 +00:00
Latest status
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import apiConfig from "@config/api.config";
|
||||
import { google, drive_v3 } from "googleapis";
|
||||
import { decrypt } from "@utils/encryptionHelper";
|
||||
import { Redis } from "@upstash/redis";
|
||||
|
||||
const decryptedSecret: string = decrypt(
|
||||
apiConfig.client_secret,
|
||||
@@ -11,6 +12,11 @@ const decryptedRefreshToken: string = decrypt(
|
||||
process.env.ENCRYPTION_KEY as string,
|
||||
);
|
||||
|
||||
export const redis = new Redis({
|
||||
url: process.env.REDIS_HOST as string,
|
||||
token: process.env.REDIS_TOKEN as string,
|
||||
});
|
||||
|
||||
const oauth2Client = new google.auth.OAuth2(
|
||||
apiConfig.client_id,
|
||||
decryptedSecret,
|
||||
|
||||
Reference in New Issue
Block a user