vue3-google-signin
Version:
Google Sign-in for Vue3 with Google Identity Service
28 lines (27 loc) • 1.69 kB
TypeScript
import type { Plugin } from "vue";
import GoogleSignInButton from "./components/GoogleSignInButton.vue";
import useGsiScript from "./composables/useGsiScript";
import useCodeClient from "./composables/useCodeClient";
import useOneTap from "./composables/useOneTap";
import useTokenClient from "./composables/useTokenClient";
import type { ImplicitFlowOptions, UseCodeClientReturn, ImplicitFlowErrorResponse, ImplicitFlowSuccessResponse } from "./composables/useCodeClient";
import type { UseGoogleOneTapLoginOptions, UseOneTapResult } from "./composables/useOneTap";
import type { AuthCodeFlowOptions, UseTokenClientReturn, AuthCodeFlowErrorResponse, AuthCodeFlowSuccessResponse } from "./composables/useTokenClient";
export declare const PLUGIN_NAME = "GoogleSignInPlugin";
export interface GoogleSignInPluginOptions {
/**
* This field is your application's client ID, which is found and created in the Google Developers Console
*
* @type {string}
* @see https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid
* @memberof GoogleSignInPluginOptions
*/
clientId: string;
}
declare const plugin: Plugin;
export { GoogleSignInButton, useCodeClient, useGsiScript, useTokenClient, useOneTap, };
export * from "./interfaces";
export * from "./utils";
export type { ImplicitFlowOptions, AuthCodeFlowOptions, UseCodeClientReturn as UseCodeClientResult, UseGoogleOneTapLoginOptions, UseOneTapResult as UseOneTapResponse, UseTokenClientReturn as UseTokenClientResult, ImplicitFlowErrorResponse, ImplicitFlowSuccessResponse, AuthCodeFlowErrorResponse, AuthCodeFlowSuccessResponse, };
export * from "./@types/globals";
export default plugin;