logger.Error("Error feching oauth information for user","error",err)
logger.Error("Error feching oauth information for user","error",err)
return
return
}
}
provider:=cmd.Result.AuthModule
provider:=authInfoQuery.Result.AuthModule
connect,ok:=social.SocialMap[strings.TrimPrefix(provider,"oauth_")]// The socialMap keys don't have "oauth_" prefix, but everywhere else in the system does
connect,ok:=social.SocialMap[strings.TrimPrefix(provider,"oauth_")]// The socialMap keys don't have "oauth_" prefix, but everywhere else in the system does
if!ok{
if!ok{
logger.Error("Failed to find oauth provider with given name","provider",provider)
logger.Error("Failed to find oauth provider with given name","provider",provider)