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
| Parameter | Type |
|---|---|
|
|
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