22 lines
469 B
TypeScript
22 lines
469 B
TypeScript
import {service} from "@/utils/alova/service.ts";
|
|
|
|
/**
|
|
* Get Github OAuth URL
|
|
*/
|
|
export const getGithubUrl = (state: string) => {
|
|
return service.Get('/api/oauth/github/get_url',
|
|
{
|
|
params: {
|
|
state: state
|
|
},
|
|
meta: {
|
|
ignoreToken: true,
|
|
},
|
|
cacheFor: {
|
|
mode: "restore",
|
|
expire: 1000 * 60 * 60 * 24 * 7
|
|
}
|
|
}
|
|
);
|
|
};
|