Function grpcio_sys::grpc_google_refresh_token_credentials_create [−][src]
pub unsafe extern "C" fn grpc_google_refresh_token_credentials_create(
json_refresh_token: *const c_char,
reserved: *mut c_void
) -> *mut grpc_call_credentials
Creates an Oauth2 Refresh Token credentials object for connecting to Google. May return NULL if the input is invalid. WARNING: Do NOT use this credentials to connect to a non-google service as this could result in an oauth2 token leak.
- json_refresh_token is the JSON string containing the refresh token itself along with a client_id and client_secret.