@devboldly/react-use-google-analytics-embed-api
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -8,5 +8,5 @@ import { GoogleAnalyticsEmbedAPILoader } from './useGoogleAnalyticsEmbedApi'; | ||
/** The text to display before a logged in user's email address. Defaults to `'You are logged in as: '`. */ | ||
userInfoLabel: string; | ||
userInfoLabel?: string; | ||
/** A list of Google API auth scopes that your application is requesting. To see all available scopes, visit the [OAuth 2.0 Playground](https://developers.google.com/oauthplayground/). For Google Analytics API auth scopes see the developer guides for [Configuration](https://developers.google.com/analytics/devguides/config) and [Reporting](https://developers.google.com/analytics/devguides/reporting) resources. */ | ||
scopes: string[]; | ||
scopes?: string[]; | ||
/** | ||
@@ -19,10 +19,10 @@ * Indicates whether the `scopes` option replaces the default Embed API scopes or adds to them. Specifying `false` (the default) will add to the default scopes, and specifying `true` will replace them with the ones specified by the `scopes` option. | ||
*/ | ||
overwriteDefaultScopes: boolean; | ||
overwriteDefaultScopes?: boolean; | ||
/** | ||
* If you already have a valid access token, you can pass it to the authorize method directly and the user will not be prompted to authorize. For details on how to retrieve an access token, see the [OAuth 2.0 documentation](https://developers.google.com/identity/protocols/oauth2). | ||
*/ | ||
serverAuth: { | ||
access_token: string; | ||
serverAuth?: { | ||
access_token?: string; | ||
}; | ||
} | ||
export declare const useAuthAuthorize: (gapiLoader: GoogleAnalyticsEmbedAPILoader, options: AuthorizeOptions, onSignIn?: (() => void) | undefined) => boolean; |
{ | ||
"name": "@devboldly/react-use-google-analytics-embed-api", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"author": "Dev Boldly <devboldly@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React hook to async load the Google Analytics Embed API.", |
90134