✨ github oauth2 login / gitee oauth2 login
This commit is contained in:
18
src/api/oauth/github.ts
Normal file
18
src/api/oauth/github.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import {service} from "@/utils/alova/service.ts";
|
||||
|
||||
/**
|
||||
* Get Github OAuth URL
|
||||
*/
|
||||
export const getGithubUrl = () => {
|
||||
return service.Get('/api/oauth/github/get_url',
|
||||
{
|
||||
meta: {
|
||||
ignoreToken: true,
|
||||
},
|
||||
cacheFor: {
|
||||
mode: "restore",
|
||||
expire: 1000 * 60 * 60 * 24 * 30 // 30 days
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user