REFRESH_TOKEN= LIBNAME Statement Option

Specifies the refresh token value for the OAuth client that is used to connect to Google BigQuery using the OAuth authentication method.

Valid in: SAS/ACCESS LIBNAME statement
Category: Data Access
Default: none
Interaction: This option is used in conjunction with the CLIENT_ID= and CLIENT_SECRET= options.
Data source: Google BigQuery
Note: Support for this option was added in the April 2020 update for SAS/ACCESS.
See: CLIENT_ID= LIBNAME option, CLIENT_SECRET= LIBNAME option
Example:
REFRESH_TOKEN="1//0dJj ... GA0SNwF-L9I ... l3-7cOoDxCR0p9u6k3_jl_i-Y31hdZ4FOumSO0" 

Table of Contents

Syntax

REFRESH_TOKEN=token-value

Syntax Description

token-value

specifies the refresh token value for the OAuth client that is used to connect to Google BigQuery using the OAuth authentication method.

Details

This value is masked in the SAS log.

This option accepts values that have been encoded using PROC PWENCODE. SAS/ACCESS recognizes encoded values as those that begin with a SAS encoding tag. For more information, see PWENCODE Procedure in Base SAS Procedures Guide.

Last updated: February 3, 2026