mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
13 lines
306 B
TypeScript
13 lines
306 B
TypeScript
export const useOAuthProviders = async () => {
|
|
const providers = await fetch(
|
|
new URL("/oauth/providers", useBaseUrl().value),
|
|
).then((d) => d.json());
|
|
return ref(
|
|
providers as {
|
|
name: string;
|
|
icon: string;
|
|
id: string;
|
|
}[],
|
|
);
|
|
};
|