MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / GetNetDiskToken

Function GetNetDiskToken

packages/filesystem/auth.ts:9–15  ·  view source on GitHub ↗
(netDiskType: NetDiskType)

Source from the content-addressed store, hash-verified

7export type NetDiskType = "baidu" | "onedrive" | "googledrive" | "dropbox";
8
9export function GetNetDiskToken(netDiskType: NetDiskType): Promise<{
10 code: number;
11 msg: string;
12 data: { token: { access_token: string; refresh_token: string } };
13}> {
14 return fetch(ExtServerApi + `auth/net-disk/token?netDiskType=${netDiskType}`).then((resp) => resp.json());
15}
16
17export function RefreshToken(
18 netDiskType: NetDiskType,

Callers 1

AuthVerifyFunction · 0.85

Calls 1

jsonMethod · 0.45

Tested by

no test coverage detected