Provides API calls for OAuth authentication with Linux, GitHub, and Google providers, and user binding. Use when implementing third‑party login flows.
// Source: https://github.com/maillab/cloud-mail | License: MIT | Copyright 2025 aslost
// Provided via justclaw.it.com; keep this notice with the code.
import http from '@/axios/index.js';
export function oauthLinuxDoLogin(code, redirectUri) {
return http.post('/oauth/linuxDo/login',{code, redirectUri})
}
export function oauthGithubLogin(code, redirectUri) {
return http.post('/oauth/github/login',{code, redirectUri})
}
export function oauthGoogleLogin(code, redirectUri) {
return http.post('/oauth/google/login',{code, redirectUri})
}
export function oauthBindUser(form) {
return http.put('/oauth/bindUser', form)
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key