File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11import  {  WeaviateStartUpError  }  from  '../errors.js' ; 
22import  {  ClientParams ,  WeaviateClient  }  from  '../index.js' ; 
3- import  {  AuthCredentials  }  from  './auth.js' ; 
3+ import  { 
4+   AuthAccessTokenCredentials , 
5+   AuthClientCredentials , 
6+   AuthCredentials , 
7+   AuthUserPasswordCredentials , 
8+ }  from  './auth.js' ; 
49import  {  ProxiesParams ,  TimeoutParams  }  from  './http.js' ; 
510
611/** The options available to the `weaviate.connectToWeaviateCloud` method. */ 
@@ -88,6 +93,16 @@ export function connectToWeaviateCloud(
8893
8994  const  {  authCredentials : auth ,  headers,  ...rest  }  =  options  ||  { } ; 
9095
96+   if  ( 
97+     [ AuthAccessTokenCredentials ,  AuthClientCredentials ,  AuthUserPasswordCredentials ] . some ( 
98+       ( c )  =>  auth  instanceof  c 
99+     ) 
100+   )  { 
101+     console . warn ( 
102+       'Connecting to WCD using OIDC is deprecated and will be removed in August 2025. Please use API keys instead.' 
103+     ) ; 
104+   } 
105+ 
91106  return  clientMaker ( { 
92107    connectionParams : { 
93108      http : { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments