Jenkins gsc authorize error

Jenkins setup: my jenkins version 3.9.1.
I have setup google coulde service account credential, client id and client secret. try to connect gcs and upload file to google drive. but giving error 401. for client id. I have checked my gsc client id and jenkind env setup client id is same. when i setup client id manually in the url. its working file get a popup window to accept authorization. only blocked when tigger from jenkins pipeline. please helpme