Skip to Content
SdkReactInternalFunctionsGoogleDriveAuthProvider

GoogleDriveAuthProvider

GoogleDriveAuthProvider(__namedParameters: GoogleDriveAuthProviderProps): Element

Defined in: src/react/useGoogleDriveAuth.ts:94 

Provider component for Google Drive OAuth authentication.

Wrap your app with this provider to enable Google Drive authentication. It handles the OAuth 2.0 Authorization Code flow with refresh tokens.

Parameters

ParameterType

__namedParameters

GoogleDriveAuthProviderProps

Returns

Element

Example

import { GoogleDriveAuthProvider } from "@reverbia/sdk/react"; function App() { return ( <GoogleDriveAuthProvider clientId={process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID} callbackPath="/auth/google/callback" > <MyApp /> </GoogleDriveAuthProvider> ); }
Last updated on