16
16
17
17
// [START apps_script_data_studio_get_auth_type_oauth2]
18
18
/**
19
- * Gets the OAuth2 Auth type .
19
+ * Returns the Auth Type of this connector .
20
20
* @return {object } The Auth type.
21
21
*/
22
22
function getAuthType ( ) {
@@ -29,7 +29,7 @@ function getAuthType() {
29
29
30
30
// [START apps_script_data_studio_get_auth_type_user_pass]
31
31
/**
32
- * Gets the OAuth2 Auth type .
32
+ * Returns the Auth Type of this connector .
33
33
* @return {object } The Auth type.
34
34
*/
35
35
function getAuthType ( ) {
@@ -43,7 +43,7 @@ function getAuthType() {
43
43
44
44
// [START apps_script_data_studio_get_auth_type_user_token]
45
45
/**
46
- * Gets the OAuth2 Auth type .
46
+ * Returns the Auth Type of this connector .
47
47
* @return {object } The Auth type.
48
48
*/
49
49
function getAuthType ( ) {
@@ -57,7 +57,7 @@ function getAuthType() {
57
57
58
58
// [START apps_script_data_studio_get_auth_type_key]
59
59
/**
60
- * Gets the OAuth2 Auth type .
60
+ * Returns the Auth Type of this connector .
61
61
* @return {object } The Auth type.
62
62
*/
63
63
function getAuthType ( ) {
@@ -71,7 +71,7 @@ function getAuthType() {
71
71
72
72
// [START apps_script_data_studio_get_auth_type_none]
73
73
/**
74
- * Gets the OAuth2 Auth type .
74
+ * Returns the Auth Type of this connector .
75
75
* @return {object } The Auth type.
76
76
*/
77
77
function getAuthType ( ) {
@@ -179,7 +179,7 @@ function isAuthValid() {
179
179
180
180
// [START apps_script_data_studio_auth_library]
181
181
/**
182
- * Returns the OAuth Service
182
+ * Returns the configured OAuth Service.
183
183
* @return {Service } The OAuth Service
184
184
*/
185
185
function getOAuthService ( ) {
@@ -197,8 +197,8 @@ function getOAuthService() {
197
197
// [START apps_script_data_studio_auth_callback]
198
198
/**
199
199
* The OAuth callback.
200
- * @param {function } request The OAuth service callback handler .
201
- * @return {HtmlOutput } The HTML output.
200
+ * @param {object } request The request data received from the OAuth flow .
201
+ * @return {HtmlOutput } The HTML output to show to the user .
202
202
*/
203
203
function authCallback ( request ) {
204
204
var authorized = getOAuthService ( ) . handleCallback ( request ) ;
0 commit comments