import {
SiDiscord,
SiGithub,
SiGoogle,
SiMicrosoft,
SiOpenid,
} from "react-icons/si";
import React from "react";
import api from "../services/api.service";
const getOAuthUrl = (appUrl: string, provider: string) => {
return `${appUrl}/api/oauth/auth/${provider}`;
};
const getOAuthIcon = (provider: string) => {
return {
google: ,
microsoft: ,
github: ,
discord: ,
oidc: ,
}[provider];
};
const unlinkOAuth = (provider: string) => {
return api.post(`/oauth/unlink/${provider}`);
};
export { getOAuthUrl, getOAuthIcon, unlinkOAuth };