File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed 
backend/src/Naheulbook.Web/Controllers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11using  AutoMapper ; 
22using  Microsoft . AspNetCore . Mvc ; 
3+ using  Microsoft . Extensions . Options ; 
34using  Naheulbook . Core . Features . Users ; 
45using  Naheulbook . Shared . Clients . Google ; 
56using  Naheulbook . Shared . Utils ; 
@@ -13,7 +14,7 @@ namespace Naheulbook.Web.Controllers;
1314[ ApiController ] 
1415[ Route ( "api/v2/authentications/google" ) ] 
1516public  class  GoogleAuthenticationController ( 
16-     GoogleOptions  options , 
17+     IOptions < GoogleOptions >  options , 
1718    IGoogleClient  googleClient , 
1819    IJwtService  jwtService , 
1920    IMapper  mapper , 
@@ -33,7 +34,7 @@ public ActionResult<AuthenticationInitResponse> PostInitOauthAuthentication()
3334        return  new  AuthenticationInitResponse 
3435        { 
3536            LoginToken  =  loginToken , 
36-             AppKey  =  options . AppId , 
37+             AppKey  =  options . Value . AppId , 
3738        } ; 
3839    } 
3940
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments